summaryrefslogtreecommitdiff
path: root/protocols/Telegram
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Telegram')
-rw-r--r--protocols/Telegram/src/server.cpp3
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)