From 19d4e6249d56cbe5c38b36dd4d3703e4fd558eeb Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 14 Oct 2024 16:48:29 +0300 Subject: =?UTF-8?q?fixes=20#4730=20(=D0=9F=D0=BB=D0=B0=D0=B3=D0=B8=D0=BD?= =?UTF-8?q?=D1=8B=20=D1=81=D0=BE=D0=BE=D0=B1=D1=89=D0=B5=D0=BD=D0=B8=D0=B9?= =?UTF-8?q?:=20=D1=83=D0=B2=D0=B5=D0=B4=D0=BE=D0=BC=D0=BB=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D0=B5=20=D0=BE=20=D0=BD=D0=BE=D0=B2=D0=BE=D0=BC=20=D1=81?= =?UTF-8?q?=D0=BE=D0=BE=D0=B1=D1=89=D0=B5=D0=BD=D0=B8=D0=B8=20=D0=B2=20?= =?UTF-8?q?=D0=B3=D1=80=D1=83=D0=BF=D1=87=D0=B0=D1=82=D0=B5=20=D0=BD=D0=B5?= =?UTF-8?q?=20=D1=81=D0=BD=D0=B8=D0=BC=D0=B0=D0=B5=D1=82=D1=81=D1=8F=20?= =?UTF-8?q?=D0=BF=D1=80=D0=B8=20=D0=BF=D1=80=D0=BE=D1=87=D1=82=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D0=B8)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protocols/Telegram/src/server.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'protocols') 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) -- cgit v1.2.3