diff options
Diffstat (limited to 'protocols/VKontakte/src/vk_chats.cpp')
-rw-r--r-- | protocols/VKontakte/src/vk_chats.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/VKontakte/src/vk_chats.cpp b/protocols/VKontakte/src/vk_chats.cpp index ba78103f0d..c8d041157a 100644 --- a/protocols/VKontakte/src/vk_chats.cpp +++ b/protocols/VKontakte/src/vk_chats.cpp @@ -218,9 +218,9 @@ void CVkProto::AppendChatMessage(int id, JSONNODE *pMsg, bool bIsHistory) if (cc == NULL)
return;
- int mid = json_as_int(json_get(pMsg, "mid"));
+ int mid = json_as_int(json_get(pMsg, "id"));
int isOut = json_as_int(json_get(pMsg, "out"));
- int uid = json_as_int(json_get(pMsg, "uid"));
+ int uid = json_as_int(json_get(pMsg, "user_id"));
int msgTime = json_as_int(json_get(pMsg, "date"));
time_t now = time(NULL);
|