summaryrefslogtreecommitdiff
path: root/protocols/Telegram/src/server.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-09-09 20:31:02 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-09-09 20:31:02 +0300
commitc63190338d69b31779ab9cf18a97dd105ef51dca (patch)
tree822e0e9bc6f5964ef4efcec27fd6897adfd73c66 /protocols/Telegram/src/server.cpp
parent35e49b83894656aa8fd225c23fb794d15ed31506 (diff)
fixes #4616 (Telegram: синхронизация статуса прочитанности некорректно работает для групповых чатов)
Diffstat (limited to 'protocols/Telegram/src/server.cpp')
-rw-r--r--protocols/Telegram/src/server.cpp3
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)