diff options
author | ElzorFox <elzorfox@ya.ru> | 2017-04-14 09:41:48 +0500 |
---|---|---|
committer | ElzorFox <elzorfox@ya.ru> | 2017-04-14 09:41:48 +0500 |
commit | b177a65e73448e889ede1fb0e9ed2b0ce1be7d3d (patch) | |
tree | e2f9bb7122277299b7c503a536fd6d2651339547 /protocols/VKontakte/src/vk_pollserver.cpp | |
parent | 7b30de3fe30115c40ab2f2a0e720123a13d67305 (diff) |
VKontakte: code cleaning
Diffstat (limited to 'protocols/VKontakte/src/vk_pollserver.cpp')
-rw-r--r-- | protocols/VKontakte/src/vk_pollserver.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/protocols/VKontakte/src/vk_pollserver.cpp b/protocols/VKontakte/src/vk_pollserver.cpp index adaaaaaf83..f3a28c6e21 100644 --- a/protocols/VKontakte/src/vk_pollserver.cpp +++ b/protocols/VKontakte/src/vk_pollserver.cpp @@ -78,7 +78,6 @@ void CVkProto::PollUpdates(const JSONNode &jnUpdates) int msgid, uid, flags, platform;
MCONTACT hContact;
-
for (auto it = jnUpdates.begin(); it != jnUpdates.end(); ++it) {
const JSONNode &jnChild = (*it).as_array();
switch (jnChild[json_index_t(0)].as_int()) {
@@ -96,7 +95,7 @@ void CVkProto::PollUpdates(const JSONNode &jnUpdates) MessageReadData data(time(NULL), MRD_TYPE_READTIME);
CallService(MS_MESSAGESTATE_UPDATE, hContact, (LPARAM)&data);
}
- else
+ else
SetSrmmReadStatus(hContact);
if (m_vkOptions.bUserForceInvisibleOnActivity)
SetInvisible(hContact);
@@ -267,7 +266,7 @@ void CVkProto::PollingThread(void*) m_pollingConn = NULL;
debugLogA("CVkProto::PollingThread: leaving");
-
+
if (m_hPollingThread) {
CloseHandle(m_hPollingThread);
m_hPollingThread = NULL;
|