diff options
author | Sergey Bolhovskoy <elzorfox@ya.ru> | 2015-09-22 09:30:48 +0000 |
---|---|---|
committer | Sergey Bolhovskoy <elzorfox@ya.ru> | 2015-09-22 09:30:48 +0000 |
commit | 5a5a0265a25e063ae560adbf83042e01d0ce1941 (patch) | |
tree | f6c3782d2b911a36f0b8abe71d19a68b38e99edb /protocols/VKontakte/src/vk_pollserver.cpp | |
parent | 3bbcdbe69ab3e2c084eb1e863315718c9c7b2aa1 (diff) |
VKontakte:
hidden option for full load clist
support for sync message read status from server
version bump
git-svn-id: http://svn.miranda-ng.org/main/trunk@15421 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src/vk_pollserver.cpp')
-rw-r--r-- | protocols/VKontakte/src/vk_pollserver.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/protocols/VKontakte/src/vk_pollserver.cpp b/protocols/VKontakte/src/vk_pollserver.cpp index fa0617f874..84058a9dcf 100644 --- a/protocols/VKontakte/src/vk_pollserver.cpp +++ b/protocols/VKontakte/src/vk_pollserver.cpp @@ -95,6 +95,8 @@ void CVkProto::PollUpdates(const JSONNode &jnUpdates) SetSrmmReadStatus(hContact);
if (m_bUserForceOnlineOnActivity)
SetInvisible(hContact);
+ if (m_bSyncReadMessageStatusFromServer)
+ MarkDialogAsRead(hContact);
}
break;
@@ -126,6 +128,12 @@ void CVkProto::PollUpdates(const JSONNode &jnUpdates) SetInvisible(hContact);
}
break;
+ case VKPOLL_READ_ALL_IN:
+ uid = jnChild[1].as_int();
+ hContact = FindUser(uid);
+ if (hContact != NULL && m_bSyncReadMessageStatusFromServer)
+ MarkDialogAsRead(hContact);
+ break;
case VKPOLL_USR_ONLINE:
uid = -jnChild[1].as_int();
|