diff options
author | Bohdan Horbeshko <bodqhrohro@gmail.com> | 2024-01-29 12:28:15 +0300 |
---|---|---|
committer | Bohdan Horbeshko <bodqhrohro@gmail.com> | 2024-01-29 12:28:15 +0300 |
commit | ea004b7f7c11fa0ddf560317fd9d6f9b2869144a (patch) | |
tree | 96157b08b5db8fde4088fde0cf1515be0c73bf6a /xmpp/handlers.go | |
parent | c141c4ad2bebe51562be0a7cfe0671f34b0a49fb (diff) |
Reflect Telegram edits natively by nativeedits option
Diffstat (limited to 'xmpp/handlers.go')
-rw-r--r-- | xmpp/handlers.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xmpp/handlers.go b/xmpp/handlers.go index 9caf886..8c6ba37 100644 --- a/xmpp/handlers.go +++ b/xmpp/handlers.go @@ -204,6 +204,7 @@ func HandleMessage(s xmpp.Sender, p stanza.Packet) { err = gateway.IdsDB.Set(session.Session.Login, bare, toID, tgMessageId, msg.Id) if err == nil { session.AddToOutbox(msg.Id, resource) + session.UpdateLastChatMessageId(toID, msg.Id) } else { log.Errorf("Failed to save ids %v/%v %v", toID, tgMessageId, msg.Id) } |