summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/skype_history_sync.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/SkypeWeb/src/skype_history_sync.cpp')
-rw-r--r--protocols/SkypeWeb/src/skype_history_sync.cpp10
1 files changed, 10 insertions, 0 deletions
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=<URIObject type="Picture.1" uri="https://api.asm.skype.com/v1//objects/0-weu-d1-262f0a1ee256d03b8e4b8360d9208834" url_thumbnail="https://api.asm.skype.com/v1//objects/0-weu-d1-262f0a1ee256d03b8e4b8360d9208834/views/imgt1"><Title></Title><Description></Description>Для просмотра этого общего фото перейдите по ссылке: https://api.asm.skype.com/s/i?0-weu-d1-262f0a1ee256d03b8e4b8360d9208834<meta type="photo" originalName="ysd7ZE4BqOg.jpg"/><OriginalName v="ysd7ZE4BqOg.jpg"/></URIObject>
+ 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:"))
{