From 1221bbbf2b71573423b0e4ef505d3969ea3a5a62 Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Sat, 9 May 2015 09:16:22 +0000 Subject: SkypeWeb: AutoSync setting fix. UserPrersence fix. git-svn-id: http://svn.miranda-ng.org/main/trunk@13493 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/SkypeWeb/src/requests/capabilities.h | 2 +- protocols/SkypeWeb/src/skype_login.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'protocols/SkypeWeb') diff --git a/protocols/SkypeWeb/src/requests/capabilities.h b/protocols/SkypeWeb/src/requests/capabilities.h index 2cf5459b62..f01036a5c3 100644 --- a/protocols/SkypeWeb/src/requests/capabilities.h +++ b/protocols/SkypeWeb/src/requests/capabilities.h @@ -55,7 +55,7 @@ public: json_push_back(privateInfo, json_new_a ("epname", compName )); json_push_back(publicInfo, json_new_a ("capabilities", "Audio|Video" )); - json_push_back(publicInfo, json_new_i ("capabilities", 125 )); + json_push_back(publicInfo, json_new_i ("typ", 125 )); json_push_back(publicInfo, json_new_a ("skypeNameVersion","Miranda NG Skype" )); json_push_back(publicInfo, json_new_a ("nodeInfo", "xx" )); json_push_back(publicInfo, json_new_a ("version", verString.GetBuffer() )); diff --git a/protocols/SkypeWeb/src/skype_login.cpp b/protocols/SkypeWeb/src/skype_login.cpp index e1adef6672..a2520a1262 100644 --- a/protocols/SkypeWeb/src/skype_login.cpp +++ b/protocols/SkypeWeb/src/skype_login.cpp @@ -219,7 +219,8 @@ void CSkypeProto::OnCapabilitiesSended(const NETLIBHTTPREQUEST *response) //SyncHistory(); SendRequest(new LoadChatsRequest(RegToken, Server), &CSkypeProto::OnLoadChats); - PushRequest(new SyncHistoryFirstRequest(RegToken, 100, Server), &CSkypeProto::OnSyncHistory); + if (getBool("AutoSync", true)) + PushRequest(new SyncHistoryFirstRequest(RegToken, 100, Server), &CSkypeProto::OnSyncHistory); if (response == NULL || response->pData == NULL) return; -- cgit v1.2.3