diff options
Diffstat (limited to 'protocols/SkypeWeb/src/skype_history_sync.cpp')
-rw-r--r-- | protocols/SkypeWeb/src/skype_history_sync.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/protocols/SkypeWeb/src/skype_history_sync.cpp b/protocols/SkypeWeb/src/skype_history_sync.cpp index fc855687af..747f3f299b 100644 --- a/protocols/SkypeWeb/src/skype_history_sync.cpp +++ b/protocols/SkypeWeb/src/skype_history_sync.cpp @@ -176,8 +176,12 @@ void CSkypeProto::OnGetServerHistory(const NETLIBHTTPREQUEST *response) 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, flags, 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, flags, clientMsgId, data.GetBuffer());
}
} //Picture
}
|