summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}