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 e24e4023b1..6c4f9e7fc8 100644 --- a/protocols/VKontakte/src/vk_chats.cpp +++ b/protocols/VKontakte/src/vk_chats.cpp @@ -133,7 +133,7 @@ void CVkProto::OnReceiveChatInfo(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pRe cc->m_admin_id = json_as_int(json_get(info, "admin_id"));
}
- JSONNODE *users = json_as_array(json_get(pResponse, "users"));
+ JSONNODE *users = json_get(pResponse, "users");
if (users != NULL) {
for (int i = 0; i < cc->m_users.getCount(); i++)
cc->m_users[i].m_bDel = true;
@@ -194,7 +194,7 @@ void CVkProto::OnReceiveChatInfo(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pRe JSONNODE *msgs = json_get(pResponse, "msgs");
if (msgs != NULL) {
int numMessages = json_as_int(json_get(msgs, "count"));
- msgs = json_as_array(json_get(msgs, "items"));
+ msgs = json_get(msgs, "items");
if (msgs != NULL){
for (int i = 0; i < numMessages; i++) {
JSONNODE *pMsg = json_at(msgs, i);
|