summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2015-05-06 17:45:07 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2015-05-06 17:45:07 +0000
commit03af1cae5bc4ee146c7bc0fea5e42ab0912acbdc (patch)
tree82654f2e137a8dbaa39a80396a7b5db1d8a40b56 /protocols
parentd5d5dccc3c1da939fb26895d17de66c624cbd33a (diff)
SkypeWeb: [13464] rework.
git-svn-id: http://svn.miranda-ng.org/main/trunk@13469 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols')
-rw-r--r--protocols/SkypeWeb/src/skype_messages.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/protocols/SkypeWeb/src/skype_messages.cpp b/protocols/SkypeWeb/src/skype_messages.cpp
index 63c74cac9c..18f2fe8775 100644
--- a/protocols/SkypeWeb/src/skype_messages.cpp
+++ b/protocols/SkypeWeb/src/skype_messages.cpp
@@ -370,8 +370,12 @@ void CSkypeProto::OnPrivateMessageEvent(JSONNODE *node)
HXML xml = xi.parseString(ptrT(mir_a2t(content)), 0, _T("URIObject"));
if (xml != NULL)
{
- ptrA url(mir_t2a(xi.getAttrValue(xml, L"url_thumbnail")));
- AddMessageToDb(hContact, timestamp, DBEF_UTF, clientMsgId, url);
+ ptrA url(mir_t2a(xi.getAttrValue(xml, L"uri")));
+ ptrA object(ParseUrl(url, "/objects/"));
+
+ CMStringA data(FORMAT, "%s: https://api.asm.skype.com/s/i?%s", Translate("Image"), object);
+
+ AddMessageToDb(hContact, timestamp, DBEF_UTF, clientMsgId, data.GetBuffer());
}
} //Picture
else if (!mir_strcmpi(messageType, "RichText/Contacts")){}