aboutsummaryrefslogtreecommitdiff
path: root/xmpp
diff options
context:
space:
mode:
authorBohdan Horbeshko <bodqhrohro@gmail.com>2024-04-11 05:17:58 +0300
committerBohdan Horbeshko <bodqhrohro@gmail.com>2024-04-11 05:17:58 +0300
commitb499992148978913aacac2e86248f0b89c6c81b7 (patch)
treec757e23357fabc433850838a06850e69391cd674 /xmpp
parent144c5724ea7ed4f1a9002e065f517e1403ef4e76 (diff)
Fix missing read markers in other XMPP clients than the message sender
Diffstat (limited to 'xmpp')
-rw-r--r--xmpp/handlers.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmpp/handlers.go b/xmpp/handlers.go
index 8c6ba37..811cef6 100644
--- a/xmpp/handlers.go
+++ b/xmpp/handlers.go
@@ -203,7 +203,7 @@ func HandleMessage(s xmpp.Sender, p stanza.Packet) {
} else {
err = gateway.IdsDB.Set(session.Session.Login, bare, toID, tgMessageId, msg.Id)
if err == nil {
- session.AddToOutbox(msg.Id, resource)
+ // session.AddToOutbox(msg.Id, resource)
session.UpdateLastChatMessageId(toID, msg.Id)
} else {
log.Errorf("Failed to save ids %v/%v %v", toID, tgMessageId, msg.Id)