From 019b48b38636ea582501e4a86193cf54d2df0193 Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Sat, 25 Apr 2015 17:49:36 +0000 Subject: SkypeWeb: Leaved chats are not added to contact list. git-svn-id: http://svn.miranda-ng.org/main/trunk@13143 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/SkypeWeb/src/skype_history_sync.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'protocols/SkypeWeb/src/skype_history_sync.cpp') diff --git a/protocols/SkypeWeb/src/skype_history_sync.cpp b/protocols/SkypeWeb/src/skype_history_sync.cpp index ff1b3c11d6..d0a119d5da 100644 --- a/protocols/SkypeWeb/src/skype_history_sync.cpp +++ b/protocols/SkypeWeb/src/skype_history_sync.cpp @@ -208,7 +208,7 @@ void CSkypeProto::OnSyncHistory(const NETLIBHTTPREQUEST *response) bool isChat = false; ptrA skypename; - ptrT topic; + TCHAR *topic; if (conversationLink != NULL && strstr(conversationLink, "/8:")) { @@ -217,16 +217,16 @@ void CSkypeProto::OnSyncHistory(const NETLIBHTTPREQUEST *response) else if (conversationLink != NULL && strstr(conversationLink, "/19:")) { skypename = ChatUrlToName(conversationLink); - isChat = true; topic = json_as_string(json_get(threadProperties, "topic")); - StartChatRoom(_A2T(skypename), topic); + SendRequest(new GetChatInfoRequest(RegToken, skypename, Server), &CSkypeProto::OnGetChatInfo, topic); + continue; } else continue; - MCONTACT hContact = isChat ? NULL : AddContact(skypename); + MCONTACT hContact = AddContact(skypename); - if (hContact == NULL || GetMessageFromDb(hContact, clientMsgId, composeTime) == NULL) - PushRequest(new GetHistoryRequest(RegToken, skypename, !isChat ? 100 : 15, isChat, 0,Server), &CSkypeProto::OnGetServerHistory); + if (GetMessageFromDb(hContact, clientMsgId, composeTime) == NULL) + PushRequest(new GetHistoryRequest(RegToken, skypename, 100, false, 0, Server), &CSkypeProto::OnGetServerHistory); } } \ No newline at end of file -- cgit v1.2.3