summaryrefslogtreecommitdiff
path: root/protocols/VKontakte/src/vk_pollserver.cpp
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2015-09-05 10:07:30 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2015-09-05 10:07:30 +0000
commitb754e2e21ea8c3d122ba35d8a0eeba18e94e9e7f (patch)
tree53aed01857f1e5869bc93d3dd19b42d0a11dbeaf /protocols/VKontakte/src/vk_pollserver.cpp
parente7cee36fa4222ecd447e98a51c20d96ce018bfdc (diff)
Vkontakte: new MessageState api
git-svn-id: http://svn.miranda-ng.org/main/trunk@15250 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src/vk_pollserver.cpp')
-rw-r--r--protocols/VKontakte/src/vk_pollserver.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/protocols/VKontakte/src/vk_pollserver.cpp b/protocols/VKontakte/src/vk_pollserver.cpp
index 4bcf807a4f..f835fbc510 100644
--- a/protocols/VKontakte/src/vk_pollserver.cpp
+++ b/protocols/VKontakte/src/vk_pollserver.cpp
@@ -87,7 +87,12 @@ void CVkProto::PollUpdates(const JSONNode &jnUpdates)
if (hContact != NULL && (flags & VKFLAG_MSGUNREAD) && !CheckMid(m_incIds, msgid)) {
setDword(hContact, "LastMsgReadTime", time(NULL));
- if (!ServiceExists("MessageState/DummyService"))
+ if (ServiceExists(MS_MESSAGESTATE_UPDATE))
+ {
+ MessageReadData data(time(NULL), MRD_TYPE_READTIME);
+ CallService(MS_MESSAGESTATE_UPDATE, hContact, (LPARAM)&data);
+ }
+ else
SetSrmmReadStatus(hContact);
if (m_bUserForceOnlineOnActivity)
SetInvisible(hContact);