mirror of
https://dev.narayana.im/narayana/telegabber.git
synced 2026-08-05 12:17:06 +00:00
Care about delivering message deletions to every resource
This commit is contained in:
parent
35ec6d44cd
commit
da83ee38bd
1 changed files with 7 additions and 1 deletions
|
|
@ -403,13 +403,19 @@ func (c *Client) updateDeleteMessages(update *client.UpdateDeleteMessages) {
|
|||
deleteChar = "✗ "
|
||||
}
|
||||
text := deleteChar + strings.Join(int64SliceToStringSlice(update.MessageIds), ",")
|
||||
|
||||
var fromJid string
|
||||
var jids []string
|
||||
if isGroupchat {
|
||||
fromJid = gateway.MUCJID(update.ChatId)
|
||||
_, jids = c.getMUCJoinedJIDs(update.ChatId)
|
||||
} else {
|
||||
fromJid = gateway.CHATNODE(update.ChatId)
|
||||
c.getCarbonFullJids(true, "")
|
||||
}
|
||||
for _, jid := range jids {
|
||||
gateway.SendTextMessage(jid, fromJid, text, c.xmpp, isGroupchat)
|
||||
}
|
||||
gateway.SendTextMessage(c.jid, fromJid, text, c.xmpp, isGroupchat)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue