summaryrefslogtreecommitdiff
path: root/protocols/VKontakte/src/vk_pollserver.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-01-17 17:37:28 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-01-17 17:37:39 +0300
commitb68362e4ca9a176bde960f20dce76822e0a5dd0e (patch)
tree9985b477a54aa7d16f782f408cf74e828b8a3fed /protocols/VKontakte/src/vk_pollserver.cpp
parent7623a366aeedaffb50057fc7ae01ad47925bb7fd (diff)
code cleaning
Diffstat (limited to 'protocols/VKontakte/src/vk_pollserver.cpp')
-rw-r--r--protocols/VKontakte/src/vk_pollserver.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/VKontakte/src/vk_pollserver.cpp b/protocols/VKontakte/src/vk_pollserver.cpp
index c023dd0825..5be1d266a8 100644
--- a/protocols/VKontakte/src/vk_pollserver.cpp
+++ b/protocols/VKontakte/src/vk_pollserver.cpp
@@ -101,7 +101,7 @@ void CVkProto::PollUpdates(const JSONNode &jnUpdates)
if (hContact != 0 && (flags & VKFLAG_MSGUNREAD) && !IsMessageExist(msgid, vkIN)) {
setDword(hContact, "LastMsgReadTime", time(0));
- if (ServiceExists(MS_MESSAGESTATE_UPDATE)) {
+ if (g_bMessageState) {
MessageReadData data(time(0), MRD_TYPE_READTIME);
CallService(MS_MESSAGESTATE_UPDATE, hContact, (LPARAM)&data);
}
@@ -175,7 +175,7 @@ void CVkProto::PollUpdates(const JSONNode &jnUpdates)
hContact = FindUser(uid);
if (hContact != 0) {
setDword(hContact, "LastMsgReadTime", time(0));
- if (ServiceExists(MS_MESSAGESTATE_UPDATE)) {
+ if (g_bMessageState) {
MessageReadData data(time(0), MRD_TYPE_READTIME);
CallService(MS_MESSAGESTATE_UPDATE, hContact, (LPARAM)&data);
}