summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/skype_messages.cpp
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2015-07-24 13:35:19 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2015-07-24 13:35:19 +0000
commit05b9e876bcbda86441b52d528b6875a7d211e734 (patch)
tree8a3bcd9d664b523589576c1cf1204753f8af4ee3 /protocols/SkypeWeb/src/skype_messages.cpp
parent9ea1fabf1643f117b46ee44d359084fe77bfd4f2 (diff)
SkypeWeb: More fixes.
git-svn-id: http://svn.miranda-ng.org/main/trunk@14676 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/skype_messages.cpp')
-rw-r--r--protocols/SkypeWeb/src/skype_messages.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/protocols/SkypeWeb/src/skype_messages.cpp b/protocols/SkypeWeb/src/skype_messages.cpp
index 11a6dc8ff0..d5cc4727c4 100644
--- a/protocols/SkypeWeb/src/skype_messages.cpp
+++ b/protocols/SkypeWeb/src/skype_messages.cpp
@@ -141,11 +141,8 @@ void CSkypeProto::OnPrivateMessageEvent(const JSONNode &node)
std::string composeTime = node["composetime"].as_string();
time_t timestamp = getByte("UseLocalTime", 0) ? time(NULL) : IsoToUnixTime(composeTime.c_str());
- std::string conversationLink = node["conversationLink"].as_string();
- std::string fromLink = node["from"].as_string();
-
- CMStringA skypename(ContactUrlToName(conversationLink.c_str()));
- CMStringA from(ContactUrlToName(fromLink.c_str()));
+ CMStringA skypename(ContactUrlToName(node["conversationLink"].as_string().c_str()));
+ CMStringA from(ContactUrlToName(node["from"].as_string().c_str()));
std::string content = node["content"].as_string();
int emoteOffset = node["skypeemoteoffset"].as_int();
@@ -182,7 +179,7 @@ void CSkypeProto::OnPrivateMessageEvent(const JSONNode &node)
{
AppendDBEvent(hContact, dbevent, message, skypeEditedId.c_str(), timestamp);
}
- else OnReceiveMessage(clientMsgId.c_str(), conversationLink.c_str(), timestamp, message, emoteOffset);
+ else OnReceiveMessage(clientMsgId.c_str(), node["conversationLink"].as_string().c_str(), timestamp, message, emoteOffset);
}
else if (!mir_strcmpi(messageType.c_str(), "Event/SkypeVideoMessage")) {}
else if (!mir_strcmpi(messageType.c_str(), "Event/Call"))