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 +- protocols/VKontakte/src/version.h | 2 +- protocols/VKontakte/src/vk.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'protocols') 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); } diff --git a/protocols/VKontakte/src/version.h b/protocols/VKontakte/src/version.h index 5a248e63cc..a11990be5a 100644 --- a/protocols/VKontakte/src/version.h +++ b/protocols/VKontakte/src/version.h @@ -1,7 +1,7 @@ #define __MAJOR_VERSION 0 #define __MINOR_VERSION 1 #define __RELEASE_NUM 2 -#define __BUILD_NUM 21 +#define __BUILD_NUM 22 #include diff --git a/protocols/VKontakte/src/vk.h b/protocols/VKontakte/src/vk.h index 4305a226e4..2f93e42f32 100644 --- a/protocols/VKontakte/src/vk.h +++ b/protocols/VKontakte/src/vk.h @@ -85,7 +85,7 @@ along with this program. If not, see . #define VK_USER_DEACTIVATE_ACTION 9321 -#define VK_API_VER "5.67" +#define VK_API_VER "5.68" #define VER_API CHAR_PARAM("v", VK_API_VER) #define VK_FEED_USER 2147483647L -- cgit v1.2.3