From 82de47fcf58844fc1d1e5ec99581375a379da49c Mon Sep 17 00:00:00 2001 From: ElzorFox Date: Wed, 16 Aug 2017 09:49:37 +0500 Subject: VKontakte: add hidden contact option ShowVkDeactivateEvents (default true) update VK_API to 5.68 version bump --- protocols/VKontakte/src/misc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'protocols/VKontakte/src/misc.cpp') diff --git a/protocols/VKontakte/src/misc.cpp b/protocols/VKontakte/src/misc.cpp index fc64fcaf8c..0d83903daf 100644 --- a/protocols/VKontakte/src/misc.cpp +++ b/protocols/VKontakte/src/misc.cpp @@ -1511,7 +1511,7 @@ 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 ? 0 : DBEF_READ); + dbei.flags = DBEF_UTF | ((m_vkOptions.bShowVkDeactivateEvents && getBool(hContact, "ShowVkDeactivateEvents", true)) ? 0 : DBEF_READ); db_event_add(hContact, &dbei); } -- cgit v1.2.3