From 03af1cae5bc4ee146c7bc0fea5e42ab0912acbdc Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Wed, 6 May 2015 17:45:07 +0000 Subject: SkypeWeb: [13464] rework. git-svn-id: http://svn.miranda-ng.org/main/trunk@13469 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/SkypeWeb/src/skype_messages.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'protocols/SkypeWeb/src') 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")){} -- cgit v1.2.3