summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/skype_chatrooms.cpp
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2015-07-27 13:48:14 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2015-07-27 13:48:14 +0000
commit346d6c8bba413fa13f31f8acfd808c23a4bbccae (patch)
tree44d5116e7330e5f87579d4826202557d0dc4851e /protocols/SkypeWeb/src/skype_chatrooms.cpp
parent0d289371985e2d099b0de6b8150dbb74fb416e43 (diff)
SkypeWeb: More fixes & optimizations
git-svn-id: http://svn.miranda-ng.org/main/trunk@14738 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/skype_chatrooms.cpp')
-rw-r--r--protocols/SkypeWeb/src/skype_chatrooms.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/protocols/SkypeWeb/src/skype_chatrooms.cpp b/protocols/SkypeWeb/src/skype_chatrooms.cpp
index 839a1191d0..5dc7dc21a3 100644
--- a/protocols/SkypeWeb/src/skype_chatrooms.cpp
+++ b/protocols/SkypeWeb/src/skype_chatrooms.cpp
@@ -127,7 +127,7 @@ void CSkypeProto::OnLoadChats(const NETLIBHTTPREQUEST *response)
std::string conversationLink = lastMessage["conversationLink"].as_string();
if (conversationLink.find("/19:") != -1)
{
- CMStringA skypename(ChatUrlToName(conversationLink.c_str()));
+ CMStringA skypename(UrlToSkypename(conversationLink.c_str()));
CMString topic(threadProperties["topic"].as_mstring());
SendRequest(new GetChatInfoRequest(m_szRegToken, skypename, m_szServer), &CSkypeProto::OnGetChatInfo, topic.Detach());
}
@@ -277,7 +277,7 @@ void CSkypeProto::OnChatEvent(const JSONNode &node)
//std::string skypeEditedId = node["skypeeditedid"].as_string();
std::string fromLink = node["from"].as_string();
- CMStringA from(ContactUrlToName(fromLink.c_str()));
+ CMStringA from(UrlToSkypename(fromLink.c_str()));
time_t timestamp = IsoToUnixTime(node["composetime"].as_string().c_str());
@@ -285,7 +285,7 @@ void CSkypeProto::OnChatEvent(const JSONNode &node)
int emoteOffset = node["skypeemoteoffset"].as_int();
std::string conversationLink = node["conversationLink"].as_string();
- CMStringA chatname(ChatUrlToName(conversationLink.c_str()));
+ CMStringA chatname(UrlToSkypename(conversationLink.c_str()));
CMString topic(node["threadtopic"].as_mstring());
if (FindChatRoom(chatname) == NULL)
@@ -453,13 +453,13 @@ void CSkypeProto::OnGetChatInfo(const NETLIBHTTPREQUEST *response, void *p)
if (!properties["capabilities"] || properties["capabilities"].empty())
return;
- CMStringA chatId(ChatUrlToName(root["messages"].as_string().c_str()));
+ CMStringA chatId(UrlToSkypename(root["messages"].as_string().c_str()));
StartChatRoom(_A2T(chatId), topic);
for (size_t i = 0; i < members.size(); i++)
{
const JSONNode &member = members.at(i);
- CMStringA username(ContactUrlToName(member["userLink"].as_string().c_str()));
+ CMStringA username(UrlToSkypename(member["userLink"].as_string().c_str()));
std::string role = member["role"].as_string();
if (!IsChatContact(_A2T(chatId), username))
AddChatContact(_A2T(chatId), username, username, _A2T(role.c_str()), true);