diff options
author | Sergey Bolhovskoy <elzorfox@ya.ru> | 2016-03-02 08:45:34 +0000 |
---|---|---|
committer | Sergey Bolhovskoy <elzorfox@ya.ru> | 2016-03-02 08:45:34 +0000 |
commit | b30c399674fa1ff51abb575a336b9c0984a28782 (patch) | |
tree | f32a153afe43787e788dbf41dc1c40583749c297 /protocols/VKontakte/src/vk_messages.cpp | |
parent | 86afe40c9f5e7c97de33e6bda58038ca764e74e4 (diff) |
VKontakte: load history for all contacts from vk.com
git-svn-id: http://svn.miranda-ng.org/main/trunk@16387 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src/vk_messages.cpp')
-rw-r--r-- | protocols/VKontakte/src/vk_messages.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/protocols/VKontakte/src/vk_messages.cpp b/protocols/VKontakte/src/vk_messages.cpp index 0327217b03..dcdc52d11b 100644 --- a/protocols/VKontakte/src/vk_messages.cpp +++ b/protocols/VKontakte/src/vk_messages.cpp @@ -374,7 +374,8 @@ void CVkProto::OnReceiveDlgs(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pReq) }
else if (m_iSyncHistoryMetod) {
int mid = jnDlg["id"].as_int();
-
+ m_bNotifyForEndLoadingHistory = false;
+
if (getDword(hContact, "lastmsgid", -1) == -1 && numUnread)
GetServerHistory(hContact, 0, numUnread, 0, 0, true);
else
@@ -384,6 +385,7 @@ void CVkProto::OnReceiveDlgs(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pReq) MarkMessagesRead(hContact);
}
else if (numUnread) {
+ m_bNotifyForEndLoadingHistory = false;
GetServerHistory(hContact, 0, numUnread, 0, 0, true);
if (m_iMarkMessageReadOn == markOnReceive)
|