From a6af3c23d3c6cc988c72b30277e222a85853bf06 Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Sun, 19 Apr 2015 15:23:14 +0000 Subject: SkypeWeb: Chatname = topic. git-svn-id: http://svn.miranda-ng.org/main/trunk@12935 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/SkypeWeb/src/skype_history_sync.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (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 a4b040eec6..d274a9a03b 100644 --- a/protocols/SkypeWeb/src/skype_history_sync.cpp +++ b/protocols/SkypeWeb/src/skype_history_sync.cpp @@ -92,7 +92,6 @@ void CSkypeProto::OnGetServerHistory(const NETLIBHTTPREQUEST *response) else if (conversationLink != NULL && strstr(conversationLink, "/19:")) { ptrA chatname(ChatUrlToName(conversationLink)); - StartChatRoom(_A2T(chatname), _A2T(chatname)); if (!mir_strcmpi(messageType, "Text") || !mir_strcmpi(messageType, "RichText")) { GCDEST gcd = { m_szModuleName, _A2T(chatname), GC_EVENT_MESSAGE }; @@ -141,6 +140,7 @@ void CSkypeProto::OnSyncHistory(const NETLIBHTTPREQUEST *response) { JSONNODE *conversation = json_at(conversations, i); JSONNODE *lastMessage = json_get(conversation, "lastMessage"); + JSONNODE *threadProperties = json_get(conversation, "threadProperties"); if (json_empty(lastMessage)) continue; @@ -152,6 +152,7 @@ void CSkypeProto::OnSyncHistory(const NETLIBHTTPREQUEST *response) bool isChat = false; ptrA skypename; + ptrT topic; if (conversationLink != NULL && strstr(conversationLink, "/8:")) { @@ -161,6 +162,9 @@ void CSkypeProto::OnSyncHistory(const NETLIBHTTPREQUEST *response) { skypename = ChatUrlToName(conversationLink); isChat = true; + JSONNODE *threadProperties = json_get(conversation, "threadProperties"); + topic = json_as_string(json_get(threadProperties, "topic")); + StartChatRoom(_A2T(skypename), topic); } else continue; -- cgit v1.2.3