From bac593011ef838e32ecf0fb63ea1f6abd5c2455d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 18 Jan 2024 17:42:19 +0300 Subject: this event marks chat as ready too --- protocols/Telegram/src/server.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'protocols/Telegram/src/server.cpp') 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"); -- cgit v1.2.3