From 55dde6fae68e9ab0f773db446a9bf3d00c08847e Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Wed, 6 May 2015 15:50:37 +0000 Subject: SkypeWeb: Receiving images. git-svn-id: http://svn.miranda-ng.org/main/trunk@13464 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/SkypeWeb/src/skype_history_sync.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'protocols/SkypeWeb/src/skype_history_sync.cpp') diff --git a/protocols/SkypeWeb/src/skype_history_sync.cpp b/protocols/SkypeWeb/src/skype_history_sync.cpp index 8ea67df14e..fc855687af 100644 --- a/protocols/SkypeWeb/src/skype_history_sync.cpp +++ b/protocols/SkypeWeb/src/skype_history_sync.cpp @@ -170,6 +170,16 @@ void CSkypeProto::OnGetServerHistory(const NETLIBHTTPREQUEST *response) } } } + else if (!mir_strcmpi(messageType, "RichText/UriObject")) + { + //content=Для просмотра этого общего фото перейдите по ссылке: https://api.asm.skype.com/s/i?0-weu-d1-262f0a1ee256d03b8e4b8360d9208834 + 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); + } + } //Picture } else if (conversationLink != NULL && strstr(conversationLink, "/19:")) { -- cgit v1.2.3