summaryrefslogtreecommitdiff
path: root/protocols/VKontakte
diff options
context:
space:
mode:
authorElzorFox <elzorfox@ya.ru>2017-12-29 15:23:15 +0500
committerElzorFox <elzorfox@ya.ru>2017-12-29 15:23:15 +0500
commitc4759940cdd3af9b314f71b3eec461b888cf62df (patch)
treea65d534b2ee3b5635a7755e8b7421db8b9abd079 /protocols/VKontakte
parentc9d67e2bb29699b147e9982226f11f6f3d433426 (diff)
VKontakte: fix show deactivate actions for hidden users
Diffstat (limited to 'protocols/VKontakte')
-rw-r--r--protocols/VKontakte/src/misc.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/protocols/VKontakte/src/misc.cpp b/protocols/VKontakte/src/misc.cpp
index 27a8a8a8a2..c659926377 100644
--- a/protocols/VKontakte/src/misc.cpp
+++ b/protocols/VKontakte/src/misc.cpp
@@ -1514,7 +1514,12 @@ void CVkProto::AddVkDeactivateEvent(MCONTACT hContact, CMStringW& wszType)
dbei.eventType = VK_USER_DEACTIVATE_ACTION;
dbei.cbBlob = (DWORD)mir_strlen(vkDeactivateEvent[iDEIdx].szDescription) + 1;
dbei.pBlob = (PBYTE)mir_strdup(vkDeactivateEvent[iDEIdx].szDescription);
- dbei.flags = DBEF_UTF | ((m_vkOptions.bShowVkDeactivateEvents && getBool(hContact, "ShowVkDeactivateEvents", true)) ? 0 : DBEF_READ);
+ dbei.flags = DBEF_UTF | (
+ (
+ m_vkOptions.bShowVkDeactivateEvents
+ && getBool(hContact, "ShowVkDeactivateEvents", true)
+ && (db_get_b(hContact, "CList", "Hidden", 0) == 0)
+ ) ? 0 : DBEF_READ);
db_event_add(hContact, &dbei);
}