summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-04-28 13:07:35 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-04-28 13:07:39 +0300
commit7649498bee10ab0c6f2b68af951d6107fef47fa2 (patch)
treeb317c2e6e13b7a798d8703cc1ab6ba53b706fecc /protocols
parentbc2c5a5e28cfdaad52cf554606489757d0e23347 (diff)
Telegram: fix for false chat initialization
Diffstat (limited to 'protocols')
-rw-r--r--protocols/Telegram/src/server.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/protocols/Telegram/src/server.cpp b/protocols/Telegram/src/server.cpp
index 8701579763..4cbc0acf94 100644
--- a/protocols/Telegram/src/server.cpp
+++ b/protocols/Telegram/src/server.cpp
@@ -847,7 +847,8 @@ void CTelegramProto::ProcessMarkRead(TD::updateChatReadInbox *pObj)
return;
}
- pUser->bInited = true;
+ if (pObj->last_read_inbox_message_id_)
+ pUser->bInited = true;
MEVENT hLastRead = db_event_getById(m_szModuleName, msg2id(pObj->chat_id_, pObj->last_read_inbox_message_id_));
if (hLastRead == 0) {