diff options
author | George Hazan <george.hazan@gmail.com> | 2024-10-14 16:48:29 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-10-14 16:48:29 +0300 |
commit | 19d4e6249d56cbe5c38b36dd4d3703e4fd558eeb (patch) | |
tree | 05fcc73b74bf45687a523b68cf2ad0fed5bb0970 /protocols | |
parent | 64b53b1c28ffa353ff2f0c0a01405f9afc2b7bf1 (diff) |
fixes #4730 (Плагины сообщений: уведомление о новом сообщении в групчате не снимается при прочтении)
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 bd68249831..191a0d5b1f 100644 --- a/protocols/Telegram/src/server.cpp +++ b/protocols/Telegram/src/server.cpp @@ -879,7 +879,8 @@ void CTelegramProto::ProcessMarkRead(TD::updateChatReadInbox *pObj) CallService(MS_MESSAGESTATE_UPDATE, GetRealContact(pUser), MRD_TYPE_READ);
if (Contact::IsGroupChat(pUser->hContact) && pObj->unread_count_ == 0)
- delSetting(pUser->hContact, "ApparentMode");
+ if (pUser->m_si)
+ pUser->m_si->markRead(true);
}
void CTelegramProto::ProcessMessage(const TD::message *pMessage)
|