summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/skype_history_sync.cpp
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2015-05-01 10:46:02 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2015-05-01 10:46:02 +0000
commit76291cede116104256af9eea2f28e818ee42dd67 (patch)
tree3df0588b94ca2f7e60ca7aeb852d26f15b95440c /protocols/SkypeWeb/src/skype_history_sync.cpp
parent29dffe9a49b1ac24d18e0e0b5d9d7744651dbdc1 (diff)
SkypeWeb: Call icon changed. Small optimizations.
git-svn-id: http://svn.miranda-ng.org/main/trunk@13328 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/skype_history_sync.cpp')
-rw-r--r--protocols/SkypeWeb/src/skype_history_sync.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/protocols/SkypeWeb/src/skype_history_sync.cpp b/protocols/SkypeWeb/src/skype_history_sync.cpp
index 532fa85b15..ce6a672766 100644
--- a/protocols/SkypeWeb/src/skype_history_sync.cpp
+++ b/protocols/SkypeWeb/src/skype_history_sync.cpp
@@ -229,20 +229,16 @@ void CSkypeProto::OnSyncHistory(const NETLIBHTTPREQUEST *response)
{
if (!getByte("AutoSync", 1)) continue;
skypename = ContactUrlToName(conversationLink);
+ MCONTACT hContact = AddContact(skypename, true);
+
+ if (GetMessageFromDb(hContact, clientMsgId, composeTime) == NULL)
+ PushRequest(new GetHistoryRequest(RegToken, skypename, 100, false, 0, Server), &CSkypeProto::OnGetServerHistory);
}
else if (conversationLink != NULL && strstr(conversationLink, "/19:"))
{
skypename = ChatUrlToName(conversationLink);
topic = json_as_string(json_get(threadProperties, "topic"));
SendRequest(new GetChatInfoRequest(RegToken, skypename, Server), &CSkypeProto::OnGetChatInfo, topic);
- continue;
}
- else
- continue;
-
- MCONTACT hContact = AddContact(skypename, true);
-
- if (GetMessageFromDb(hContact, clientMsgId, composeTime) == NULL)
- PushRequest(new GetHistoryRequest(RegToken, skypename, 100, false, 0, Server), &CSkypeProto::OnGetServerHistory);
}
} \ No newline at end of file