diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2015-04-25 17:49:36 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2015-04-25 17:49:36 +0000 |
commit | 019b48b38636ea582501e4a86193cf54d2df0193 (patch) | |
tree | 01493ea7cc1f013b6f84a334e3e58b610158f483 /protocols/SkypeWeb/src/skype_history_sync.cpp | |
parent | 763ff998a4b78f958fdc73440682ccbaf7a66fe4 (diff) |
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
Diffstat (limited to 'protocols/SkypeWeb/src/skype_history_sync.cpp')
-rw-r--r-- | protocols/SkypeWeb/src/skype_history_sync.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
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 |