diff options
author | Bohdan Horbeshko <bodqhrohro@gmail.com> | 2023-07-16 04:38:10 +0300 |
---|---|---|
committer | Bohdan Horbeshko <bodqhrohro@gmail.com> | 2023-07-16 04:38:10 +0300 |
commit | e954c73bd2d881bc448b6bb2b3cb3a4ad37d0139 (patch) | |
tree | d7ca50fd61e8aecd81049667dd871acc9c874f7b /xmpp | |
parent | 959dc061ff30ba1cf5c699adc0f7d1d991d7afa5 (diff) |
Do not ack with edited message to the XEP-0308 sender resource
Diffstat (limited to 'xmpp')
-rw-r--r-- | xmpp/handlers.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xmpp/handlers.go b/xmpp/handlers.go index e6671bc..c5ec029 100644 --- a/xmpp/handlers.go +++ b/xmpp/handlers.go @@ -177,13 +177,14 @@ func HandleMessage(s xmpp.Sender, p stanza.Packet) { if err != nil { log.Errorf("Failed to replace id %v with %v %v", replace.Id, msg.Id, tgMessageId) } */ + session.AddToOutbox(replace.Id, resource) } else { err = gateway.IdsDB.Set(session.Session.Login, bare, toID, tgMessageId, msg.Id) if err != nil { log.Errorf("Failed to save ids %v/%v %v", toID, tgMessageId, msg.Id) } + session.AddToOutbox(msg.Id, resource) } - session.AddToOutbox(msg.Id, resource) } else { /* // if a message failed to edit on Telegram side, match new XMPP ID with old Telegram ID anyway |