summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-01-18 17:42:19 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-01-18 17:42:19 +0300
commitbac593011ef838e32ecf0fb63ea1f6abd5c2455d (patch)
tree254f422bcbfe997c0c36f180dbb5ea985fba6089 /protocols
parent04d239322880af48b9d5fba5334e1c11de39bd22 (diff)
this event marks chat as ready too
Diffstat (limited to 'protocols')
-rw-r--r--protocols/Telegram/src/server.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/protocols/Telegram/src/server.cpp b/protocols/Telegram/src/server.cpp
index bfed68de89..52dc634705 100644
--- a/protocols/Telegram/src/server.cpp
+++ b/protocols/Telegram/src/server.cpp
@@ -721,6 +721,8 @@ void CTelegramProto::ProcessMarkRead(TD::updateChatReadInbox *pObj)
return;
}
+ pUser->bInited = true;
+
MEVENT hLastRead = db_event_getById(m_szModuleName, msg2id(pObj->chat_id_, pObj->last_read_inbox_message_id_));
if (hLastRead == 0) {
debugLogA("unknown event, ignored");