From c4759940cdd3af9b314f71b3eec461b888cf62df Mon Sep 17 00:00:00 2001 From: ElzorFox Date: Fri, 29 Dec 2017 15:23:15 +0500 Subject: VKontakte: fix show deactivate actions for hidden users --- protocols/VKontakte/src/misc.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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); } -- cgit v1.2.3