summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/skype_chatrooms.cpp
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2016-04-22 12:24:49 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2016-04-22 12:24:49 +0000
commit7e45d8a15069e165f093d03824300591d7014653 (patch)
tree06d0b3c8c31b96bc42202b67fdc17188732e31b3 /protocols/SkypeWeb/src/skype_chatrooms.cpp
parentdc7a8b1f54463500d2c13339829db6c665f097da (diff)
SkypeWeb: fix chatrooms loading (?)
git-svn-id: http://svn.miranda-ng.org/main/trunk@16745 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/skype_chatrooms.cpp')
-rw-r--r--protocols/SkypeWeb/src/skype_chatrooms.cpp14
1 files changed, 5 insertions, 9 deletions
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());
}
}