From e43a6cf4dda70ba49757dcb9e1e476857ed9fb10 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 12 Jan 2014 16:12:41 +0000 Subject: don't blink in chats on messages from history git-svn-id: http://svn.miranda-ng.org/main/trunk@7618 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/VKontakte/src/vk_chats.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'protocols/VKontakte/src') diff --git a/protocols/VKontakte/src/vk_chats.cpp b/protocols/VKontakte/src/vk_chats.cpp index 6ffca96a32..73974134dc 100644 --- a/protocols/VKontakte/src/vk_chats.cpp +++ b/protocols/VKontakte/src/vk_chats.cpp @@ -192,6 +192,7 @@ void CVkProto::OnReceiveChatInfo(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pRe JSONNODE *msgs = json_as_array(json_get(pResponse, "msgs")); if (msgs != NULL) { + cc->m_bHistoryRead = true; for (int i = 1;; i++) { JSONNODE *pMsg = json_at(msgs, i); if (pMsg == NULL) @@ -199,7 +200,6 @@ void CVkProto::OnReceiveChatInfo(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pRe AppendChatMessage(cc->m_chatid, pMsg, true); } - cc->m_bHistoryRead = true; } for (int j = 0; j < cc->m_msgs.getCount(); j++) { -- cgit v1.2.3