diff options
author | George Hazan <george.hazan@gmail.com> | 2024-10-15 20:00:52 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-10-15 20:00:52 +0300 |
commit | 47b79689fcbe77ab19eb577487ef70642fa291f7 (patch) | |
tree | 0a3b3c0679346ff1d49f6f7f898f71001459de47 /protocols/Telegram | |
parent | b210af86bcfb49c791ef8f74f0791ff6d36763bd (diff) |
fixes #4720 (NewStory: встроить функциональность MessageState)
Diffstat (limited to 'protocols/Telegram')
-rw-r--r-- | protocols/Telegram/src/server.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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)
|