From 47b79689fcbe77ab19eb577487ef70642fa291f7 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 15 Oct 2024 20:00:52 +0300 Subject: =?UTF-8?q?fixes=20#4720=20(NewStory:=20=D0=B2=D1=81=D1=82=D1=80?= =?UTF-8?q?=D0=BE=D0=B8=D1=82=D1=8C=20=D1=84=D1=83=D0=BD=D0=BA=D1=86=D0=B8?= =?UTF-8?q?=D0=BE=D0=BD=D0=B0=D0=BB=D1=8C=D0=BD=D0=BE=D1=81=D1=82=D1=8C=20?= =?UTF-8?q?MessageState)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protocols/Telegram/src/server.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'protocols') diff --git a/protocols/Telegram/src/server.cpp b/protocols/Telegram/src/server.cpp index 191a0d5b1f..2d3062d700 100644 --- a/protocols/Telegram/src/server.cpp +++ b/protocols/Telegram/src/server.cpp @@ -1088,6 +1088,9 @@ void CTelegramProto::ProcessRemoteMarkRead(TD::updateChatReadOutbox *pObj) MarkRead(pUser->hContact, szMaxId, true); CallService(MS_MESSAGESTATE_UPDATE, GetRealContact(pUser), MRD_TYPE_READ); + + if (auto hEvent = db_event_getById(m_szModuleName, szMaxId)) + NS_NotifyRemoteRead(GetRealContact(pUser), hEvent); } void CTelegramProto::ProcessScopeNotification(TD::updateScopeNotificationSettings *pObj) -- cgit v1.2.3