mirror of
https://dev.narayana.im/narayana/telegabber.git
synced 2026-08-05 04:07:07 +00:00
Fix command responses in MUCs
This commit is contained in:
parent
da83ee38bd
commit
d665dbdcc4
1 changed files with 5 additions and 1 deletions
|
|
@ -2056,7 +2056,11 @@ func (c *Client) ProcessOutgoingMessage(chatID int64, text string, returnJid str
|
|||
|
||||
func (c *Client) returnMessage(returnJid string, chatID int64, text string, code int, isGroupchat bool) {
|
||||
if isGroupchat {
|
||||
if code != 0 {
|
||||
gateway.SendErrorMessage(returnJid, gateway.MUCJID(chatID), text, code, isGroupchat, c.xmpp)
|
||||
} else {
|
||||
gateway.SendTextMessage(returnJid, gateway.MUCJID(chatID), text, c.xmpp, isGroupchat)
|
||||
}
|
||||
} else {
|
||||
gateway.SendTextMessage(returnJid, gateway.CHATNODE(chatID), text, c.xmpp, isGroupchat)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue