diff options
author | George Hazan <george.hazan@gmail.com> | 2024-09-09 20:31:02 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-09-09 20:31:02 +0300 |
commit | c63190338d69b31779ab9cf18a97dd105ef51dca (patch) | |
tree | 822e0e9bc6f5964ef4efcec27fd6897adfd73c66 /protocols/Telegram | |
parent | 35e49b83894656aa8fd225c23fb794d15ed31506 (diff) |
fixes #4616 (Telegram: синхронизация статуса прочитанности некорректно работает для групповых чатов)
Diffstat (limited to 'protocols/Telegram')
-rw-r--r-- | protocols/Telegram/src/server.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/protocols/Telegram/src/server.cpp b/protocols/Telegram/src/server.cpp index 119ffe2396..f1bf7abb25 100644 --- a/protocols/Telegram/src/server.cpp +++ b/protocols/Telegram/src/server.cpp @@ -878,6 +878,9 @@ void CTelegramProto::ProcessMarkRead(TD::updateChatReadInbox *pObj) if (!dbei.markedRead())
db_event_markRead(pUser->hContact, hEvent, true);
}
+
+ if (Contact::IsGroupChat(pUser->hContact) && pObj->unread_count_ == 0)
+ delSetting(pUser->hContact, "ApparentMode");
}
void CTelegramProto::ProcessMessage(const TD::message *pMessage)
|