From 7e45d8a15069e165f093d03824300591d7014653 Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Fri, 22 Apr 2016 12:24:49 +0000 Subject: SkypeWeb: fix chatrooms loading (?) git-svn-id: http://svn.miranda-ng.org/main/trunk@16745 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/SkypeWeb/src/skype_chatrooms.cpp | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'protocols/SkypeWeb/src/skype_chatrooms.cpp') diff --git a/protocols/SkypeWeb/src/skype_chatrooms.cpp b/protocols/SkypeWeb/src/skype_chatrooms.cpp index 9e6506e015..7c052adb32 100644 --- a/protocols/SkypeWeb/src/skype_chatrooms.cpp +++ b/protocols/SkypeWeb/src/skype_chatrooms.cpp @@ -119,18 +119,14 @@ void CSkypeProto::OnLoadChats(const NETLIBHTTPREQUEST *response) for (size_t i = 0; i < conversations.size(); i++) { const JSONNode &conversation = conversations.at(i); - const JSONNode &lastMessage = conversation["lastMessage"]; const JSONNode &threadProperties = conversation["threadProperties"]; - if (!lastMessage) + const JSONNode &id = conversation["id"]; + + if (!conversation["lastMessage"]) continue; - std::string conversationLink = lastMessage["conversationLink"].as_string(); - if (conversationLink.find("/19:") != -1) - { - CMStringA skypename(UrlToSkypename(conversationLink.c_str())); - CMString topic(threadProperties["topic"].as_mstring()); - SendRequest(new GetChatInfoRequest(skypename, li), &CSkypeProto::OnGetChatInfo, topic.Detach()); - } + CMString topic(threadProperties["topic"].as_mstring()); + SendRequest(new GetChatInfoRequest(id.as_string().c_str(), li), &CSkypeProto::OnGetChatInfo, topic.Detach()); } } -- cgit v1.2.3