diff options
-rw-r--r-- | protocols/SkypeWeb/src/skype_messages.cpp | 8 |
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")){}
|