diff options
author | Sergey Bolhovskoy <elzorfox@ya.ru> | 2014-11-26 08:31:05 +0000 |
---|---|---|
committer | Sergey Bolhovskoy <elzorfox@ya.ru> | 2014-11-26 08:31:05 +0000 |
commit | f5e38aaba573fa720894433ae746b3a7a741356e (patch) | |
tree | efa60120868d534c3e25988c14c7eda50deccd8f /protocols/VKontakte | |
parent | 9782781fb88486ee7ddc90d32e5d144c30d0ce81 (diff) |
VKontakte: fix for unneeded adding no-friend user from chat
git-svn-id: http://svn.miranda-ng.org/main/trunk@11082 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte')
-rw-r--r-- | protocols/VKontakte/src/vk_thread.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/protocols/VKontakte/src/vk_thread.cpp b/protocols/VKontakte/src/vk_thread.cpp index c4ddcee979..30a9c4a50e 100644 --- a/protocols/VKontakte/src/vk_thread.cpp +++ b/protocols/VKontakte/src/vk_thread.cpp @@ -599,8 +599,10 @@ void CVkProto::OnReceiveMessages(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pRe if (pAttachments != NULL)
ptszBody = mir_tstrdup(CMString(ptszBody) + GetAttachmentDescr(pAttachments));
- MCONTACT hContact = FindUser(uid, true);
+ MCONTACT hContact = NULL;
int chat_id = json_as_int(json_get(pMsg, "chat_id"));
+ if (chat_id == 0)
+ hContact = FindUser(uid, true);
char szMid[40];
_itoa(mid, szMid, 10);
|