summaryrefslogtreecommitdiff
path: root/protocols/VKontakte/src/vk_thread.cpp
diff options
context:
space:
mode:
authorElzorFox <elzorfox@ya.ru>2017-12-30 14:36:56 +0500
committerElzorFox <elzorfox@ya.ru>2017-12-30 14:36:56 +0500
commit585c432e2b3a39d61044999bbf04fecfdcaa6efa (patch)
tree0e990db34c45c559b0452dd01a3c40e5b71c44af /protocols/VKontakte/src/vk_thread.cpp
parent77ccb3558c67c83bd0ce5136b785467ef2697911 (diff)
VKontakte: more fix for fix show deactivate actions
Diffstat (limited to 'protocols/VKontakte/src/vk_thread.cpp')
-rw-r--r--protocols/VKontakte/src/vk_thread.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/protocols/VKontakte/src/vk_thread.cpp b/protocols/VKontakte/src/vk_thread.cpp
index e89d4d6416..0ef8721a1f 100644
--- a/protocols/VKontakte/src/vk_thread.cpp
+++ b/protocols/VKontakte/src/vk_thread.cpp
@@ -272,7 +272,7 @@ void CVkProto::OnReceiveMyInfo(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pReq)
RetrievePollingInfo();
}
-MCONTACT CVkProto::SetContactInfo(const JSONNode &jnItem, bool flag, bool self)
+MCONTACT CVkProto::SetContactInfo(const JSONNode &jnItem, bool flag, VKContactType vkContactType)
{
if (!jnItem) {
debugLogA("CVkProto::SetContactInfo pItem == nullptr");
@@ -288,14 +288,21 @@ MCONTACT CVkProto::SetContactInfo(const JSONNode &jnItem, bool flag, bool self)
if (userid == m_myUserId) {
if (hContact != 0)
- if (self)
+ if (vkContactType == VKContactType::vkContactSelf)
hContact = 0;
else
- SetContactInfo(jnItem, flag, true);
+ SetContactInfo(jnItem, flag, VKContactType::vkContactSelf);
}
else if (hContact == 0)
return 0;
+ if (vkContactType == VKContactType::vkContactMUCUser) {
+ db_set_b(hContact, "CList", "Hidden", 1);
+ db_set_b(hContact, "CList", "NotOnList", 1);
+ db_set_dw(hContact, "Ignore", "Mask1", 0);
+ }
+
+
CMStringW wszNick, wszValue;
int iValue;