mirror of
https://github.com/YspCoder/clawgo.git
synced 2026-04-29 03:47:28 +08:00
fix whatsapp
This commit is contained in:
@@ -931,7 +931,13 @@ func (al *AgentLoop) prepareOutbound(msg bus.InboundMessage, response string) (b
|
||||
if al.shouldSuppressOutbound(msg, clean) {
|
||||
return bus.OutboundMessage{}, false
|
||||
}
|
||||
outbound := bus.OutboundMessage{Channel: msg.Channel, ChatID: msg.ChatID, Content: clean, ReplyToID: strings.TrimSpace(replyToID)}
|
||||
outbound := bus.OutboundMessage{
|
||||
Channel: msg.Channel,
|
||||
ChatID: msg.ChatID,
|
||||
Content: clean,
|
||||
ReplyToID: strings.TrimSpace(replyToID),
|
||||
ReplyToSender: strings.TrimSpace(msg.SenderID),
|
||||
}
|
||||
if msg.Channel == "system" {
|
||||
outbound.Channel, outbound.ChatID = resolveSystemOrigin(msg.ChatID)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user