diff options
author | George Hazan <george.hazan@gmail.com> | 2024-10-21 18:17:12 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-10-21 18:17:12 +0300 |
commit | ee868b7339322e7222cb62741f397d97180c96cb (patch) | |
tree | 6e19aa7aaea69cd9e39e4896a29cc495514a4617 /protocols/VKontakte/src/vk_pollserver.cpp | |
parent | f81db767c1caeb7749faa95e509c6c6d4b0c940d (diff) |
VK: remote read support for NewStory
Diffstat (limited to 'protocols/VKontakte/src/vk_pollserver.cpp')
-rw-r--r-- | protocols/VKontakte/src/vk_pollserver.cpp | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/protocols/VKontakte/src/vk_pollserver.cpp b/protocols/VKontakte/src/vk_pollserver.cpp index 00c0928749..52a8b92f06 100644 --- a/protocols/VKontakte/src/vk_pollserver.cpp +++ b/protocols/VKontakte/src/vk_pollserver.cpp @@ -104,11 +104,7 @@ void CVkProto::PollUpdates(const JSONNode &jnUpdates) }
if (hContact != 0 && (iFlags & VKFLAG_MSGUNREAD) && !IsMessageExist(iMessageId, vkIN)) {
- setDword(hContact, "LastMsgReadTime", time(0));
- if (g_bMessageState)
- CallService(MS_MESSAGESTATE_UPDATE, hContact, MRD_TYPE_READ);
- else
- SetSrmmReadStatus(hContact);
+ MarkRemoteRead(hContact);
if (m_vkOptions.bUserForceInvisibleOnActivity)
SetInvisible(hContact);
@@ -177,11 +173,7 @@ void CVkProto::PollUpdates(const JSONNode &jnUpdates) iUserId = jnChild[1].as_int();
hContact = FindUser(iUserId);
if (hContact != 0) {
- setDword(hContact, "LastMsgReadTime", time(0));
- if (g_bMessageState)
- CallService(MS_MESSAGESTATE_UPDATE, hContact, MRD_TYPE_READ);
- else
- SetSrmmReadStatus(hContact);
+ MarkRemoteRead(hContact);
if (m_vkOptions.bUserForceInvisibleOnActivity)
SetInvisible(hContact);
|