From ea004b7f7c11fa0ddf560317fd9d6f9b2869144a Mon Sep 17 00:00:00 2001 From: Bohdan Horbeshko Date: Mon, 29 Jan 2024 04:28:15 -0500 Subject: Reflect Telegram edits natively by nativeedits option --- xmpp/handlers.go | 1 + 1 file changed, 1 insertion(+) (limited to 'xmpp/handlers.go') 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) } -- cgit v1.2.3