diff options
author | George Hazan <george.hazan@gmail.com> | 2024-04-28 13:07:35 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-04-28 13:07:39 +0300 |
commit | 7649498bee10ab0c6f2b68af951d6107fef47fa2 (patch) | |
tree | b317c2e6e13b7a798d8703cc1ab6ba53b706fecc /protocols | |
parent | bc2c5a5e28cfdaad52cf554606489757d0e23347 (diff) |
Telegram: fix for false chat initialization
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/Telegram/src/server.cpp | 3 |
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) {
|