summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-10-10 15:39:47 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-10-10 15:39:47 +0300
commit14ffb1622133f8f7edfb5c35f898dd9d9eab7359 (patch)
tree040efc7b3e4cf98bd1edacfae92c4feb38234a1b
parentc32a1eac774880b76130d24bf0b0cb4a8640f993 (diff)
Telegram: fix for marking events as read
-rw-r--r--protocols/Telegram/src/server.cpp4
1 files changed, 2 insertions, 2 deletions
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);
}