From 14ffb1622133f8f7edfb5c35f898dd9d9eab7359 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 10 Oct 2024 15:39:47 +0300 Subject: Telegram: fix for marking events as read --- protocols/Telegram/src/server.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols') diff --git a/protocols/Telegram/src/server.cpp b/protocols/Telegram/src/server.cpp index 9237b3c341..bd68249831 100644 --- a/protocols/Telegram/src/server.cpp +++ b/protocols/Telegram/src/server.cpp @@ -873,7 +873,7 @@ void CTelegramProto::ProcessMarkRead(TD::updateChatReadInbox *pObj) } // make sure that all events with ids lower or equal than szMaxId are marked read - MarkRead(pUser->hContact, szMaxId, true); + MarkRead(pUser->hContact, szMaxId, false); if (g_plugin.hasMessageState && pObj->unread_count_ == 0) CallService(MS_MESSAGESTATE_UPDATE, GetRealContact(pUser), MRD_TYPE_READ); @@ -1084,7 +1084,7 @@ void CTelegramProto::ProcessRemoteMarkRead(TD::updateChatReadOutbox *pObj) } CMStringA szMaxId(msg2id(pUser->chatId, pObj->last_read_outbox_message_id_)); - MarkRead(pUser->hContact, szMaxId, false); + MarkRead(pUser->hContact, szMaxId, true); CallService(MS_MESSAGESTATE_UPDATE, GetRealContact(pUser), MRD_TYPE_READ); } -- cgit v1.2.3