diff options
author | Sergey Bolhovskoy <elzorfox@ya.ru> | 2015-04-27 08:27:14 +0000 |
---|---|---|
committer | Sergey Bolhovskoy <elzorfox@ya.ru> | 2015-04-27 08:27:14 +0000 |
commit | 68a6aa6db2eb165cfbebebc891a41be2f6917f44 (patch) | |
tree | 97de1a63f4b9f23d0b19145807f0a6eb5cd3fe74 /protocols | |
parent | a3dda9c746af7a1a2091fdc9bab09189a815481b (diff) |
VKontakte: fix userinfo for chat users (not on list)
git-svn-id: http://svn.miranda-ng.org/main/trunk@13193 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/VKontakte/src/vk_chats.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/protocols/VKontakte/src/vk_chats.cpp b/protocols/VKontakte/src/vk_chats.cpp index 0988fafa5d..cf6b2b7461 100644 --- a/protocols/VKontakte/src/vk_chats.cpp +++ b/protocols/VKontakte/src/vk_chats.cpp @@ -651,6 +651,7 @@ void CVkProto::OnChatDestroy(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pReq) void CVkProto::NickMenuHook(CVkChatInfo *cc, GCHOOK *gch)
{
CVkChatUser* cu = cc->GetUserById(gch->ptszUID);
+ MCONTACT hContact;
if (cu == NULL)
return;
@@ -660,8 +661,13 @@ void CVkProto::NickMenuHook(CVkChatInfo *cc, GCHOOK *gch) switch (gch->dwData) {
case IDM_INFO:
- if (MCONTACT hContact = FindUser(cu->m_uid))
- CallService(MS_USERINFO_SHOWDIALOG, hContact, 0);
+ hContact = FindUser(cu->m_uid);
+ if (hContact == NULL) {
+ hContact = FindUser(cu->m_uid, true);
+ db_set_b(hContact, "CList", "Hidden", 1);
+ db_set_b(hContact, "CList", "NotOnList", 1);
+ }
+ CallService(MS_USERINFO_SHOWDIALOG, hContact, 0);
break;
case IDM_KICK:
|