summaryrefslogtreecommitdiff
path: root/protocols/VKontakte/src/misc.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/misc.cpp
parent7623a366aeedaffb50057fc7ae01ad47925bb7fd (diff)
code cleaning
Diffstat (limited to 'protocols/VKontakte/src/misc.cpp')
-rw-r--r--protocols/VKontakte/src/misc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/VKontakte/src/misc.cpp b/protocols/VKontakte/src/misc.cpp
index 196f76f29f..582aa00481 100644
--- a/protocols/VKontakte/src/misc.cpp
+++ b/protocols/VKontakte/src/misc.cpp
@@ -701,7 +701,7 @@ void CVkProto::ContactTypingThread(void *p)
Sleep(4500);
CallService(MS_PROTO_CONTACTISTYPING, hContact);
- if (!ServiceExists(MS_MESSAGESTATE_UPDATE)) {
+ if (!g_bMessageState) {
Sleep(1500);
SetSrmmReadStatus(hContact);
}
@@ -739,7 +739,7 @@ int CVkProto::OnProcessSrmmEvent(WPARAM, LPARAM lParam)
if (szProto.IsEmpty() || szProto != m_szModuleName)
return 0;
- if (event->uType == MSG_WINDOW_EVT_OPENING && !ServiceExists(MS_MESSAGESTATE_UPDATE))
+ if (event->uType == MSG_WINDOW_EVT_OPENING && !g_bMessageState)
SetSrmmReadStatus(event->hContact);
if (event->uType == MSG_WINDOW_EVT_OPENING && m_vkOptions.bLoadLastMessageOnMsgWindowsOpen