summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorElzorFox <elzorfox@ya.ru>2017-09-18 13:55:51 +0500
committerElzorFox <elzorfox@ya.ru>2017-09-18 13:55:51 +0500
commit2baad6beddf3d239291773001b37df046a294d80 (patch)
treed30de3be09bbafafee9501a6d1daa771fe37cecd /protocols
parent4b42369bedd87f02c959303a817e7974bfd580c6 (diff)
VKontakte: fix error 100 for deactivated contact on mark message as read
Diffstat (limited to 'protocols')
-rw-r--r--protocols/VKontakte/src/vk_messages.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/protocols/VKontakte/src/vk_messages.cpp b/protocols/VKontakte/src/vk_messages.cpp
index 9d4acbabad..56d3b4edda 100644
--- a/protocols/VKontakte/src/vk_messages.cpp
+++ b/protocols/VKontakte/src/vk_messages.cpp
@@ -188,6 +188,10 @@ void CVkProto::MarkMessagesRead(const MCONTACT hContact)
debugLogA("CVkProto::MarkMessagesRead (hContact)");
if (!IsOnline() || !hContact)
return;
+
+ if (!IsEmpty(ptrW(db_get_wsa(hContact, m_szModuleName, "Deactivated"))))
+ return;
+
LONG userID = getDword(hContact, "ID", VK_INVALID_USER);
if (userID == VK_INVALID_USER || userID == VK_FEED_USER)
return;