diff options
author | Sergey Bolhovskoy <elzorfox@ya.ru> | 2015-06-10 05:04:12 +0000 |
---|---|---|
committer | Sergey Bolhovskoy <elzorfox@ya.ru> | 2015-06-10 05:04:12 +0000 |
commit | bbb6cd5261b7e23f5b5231571b97a379bdc539d4 (patch) | |
tree | c01a3be2aecb7988c80527515222412e4ab786a7 /protocols/VKontakte/src/vk_pollserver.cpp | |
parent | a18e8fcd8026630019e4e8479d2858bf6998dba2 (diff) |
VKontakte: no set ‘read message status’ when MessageState exist
git-svn-id: http://svn.miranda-ng.org/main/trunk@14096 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src/vk_pollserver.cpp')
-rw-r--r-- | protocols/VKontakte/src/vk_pollserver.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/protocols/VKontakte/src/vk_pollserver.cpp b/protocols/VKontakte/src/vk_pollserver.cpp index 3e9aac2184..d867a059e3 100644 --- a/protocols/VKontakte/src/vk_pollserver.cpp +++ b/protocols/VKontakte/src/vk_pollserver.cpp @@ -87,7 +87,8 @@ void CVkProto::PollUpdates(const JSONNode &jnUpdates) if (hContact != NULL && (flags & VKFLAG_MSGUNREAD) && !CheckMid(m_incIds, msgid)) {
setDword(hContact, "LastMsgReadTime", time(NULL));
- SetSrmmReadStatus(hContact);
+ if (!ServiceExists("MessageState/DummyService"))
+ SetSrmmReadStatus(hContact);
if (m_bUserForceOnlineOnActivity)
SetInvisible(hContact);
}
@@ -112,7 +113,8 @@ void CVkProto::PollUpdates(const JSONNode &jnUpdates) hContact = FindUser(uid);
if (hContact != NULL) {
setDword(hContact, "LastMsgReadTime", time(NULL));
- SetSrmmReadStatus(hContact);
+ if (!ServiceExists("MessageState/DummyService"))
+ SetSrmmReadStatus(hContact);
if (m_bUserForceOnlineOnActivity)
SetInvisible(hContact);
}
|