summaryrefslogtreecommitdiff
path: root/protocols/VKontakte/src/vk_thread.cpp
diff options
context:
space:
mode:
authorSergey Bolhovskoy <elzorfox@ya.ru>2014-11-26 05:03:20 +0000
committerSergey Bolhovskoy <elzorfox@ya.ru>2014-11-26 05:03:20 +0000
commit78ea011bd205b2b7f538950d32935f93debd6040 (patch)
tree6af575b89b9dcc2900a64283bb87083f09049536 /protocols/VKontakte/src/vk_thread.cpp
parentdb2ec6c60fc50ea7a66a9d782b1af1017df596ca (diff)
VKontakte:
more options for sync history on protocol online some code cleanup version bump git-svn-id: http://svn.miranda-ng.org/main/trunk@11079 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src/vk_thread.cpp')
-rw-r--r--protocols/VKontakte/src/vk_thread.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/protocols/VKontakte/src/vk_thread.cpp b/protocols/VKontakte/src/vk_thread.cpp
index ae4d84fb9f..0e6e406191 100644
--- a/protocols/VKontakte/src/vk_thread.cpp
+++ b/protocols/VKontakte/src/vk_thread.cpp
@@ -662,8 +662,7 @@ void CVkProto::OnReceiveDlgs(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pReq)
if (pDlgs == NULL)
return;
- if (m_bAutoSyncHistory&&m_bPopUpSyncHistory)
- MsgPopup(NULL, TranslateT("Start sync history"), TranslateT("Sync history"));
+
for (int i = 0; i < numDlgs; i++) {
JSONNODE *pDlg = json_at(pDlgs, i);
if (pDlg == NULL)
@@ -681,7 +680,7 @@ void CVkProto::OnReceiveDlgs(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pReq)
if (m_chats.find((CVkChatInfo*)&chatid) == NULL)
AppendChat(chatid, pDlg);
}
- else if (m_bAutoSyncHistory) {
+ else if (m_iSyncHistoryMetod) {
int mid = json_as_int(json_get(pDlg, "id"));
int uid = json_as_int(json_get(pDlg, "user_id"));
MCONTACT hContact = FindUser(uid, true);
@@ -704,8 +703,6 @@ void CVkProto::OnReceiveDlgs(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pReq)
MarkMessagesRead(hContact);
}
}
- if (m_bAutoSyncHistory && m_bPopUpSyncHistory)
- MsgPopup(NULL, TranslateT("Sync history complete"), TranslateT("Sync history"));
RetrieveUsersInfo();
}