summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/skype_poll_processing.cpp
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2015-05-09 18:20:41 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2015-05-09 18:20:41 +0000
commit98ea54f7f9eac65c369538e0f293ac7ec3e8db51 (patch)
treeac16c667c685bf68ef3368bc4b4c2f54cb81da3b /protocols/SkypeWeb/src/skype_poll_processing.cpp
parentead1af24335c627c11ef2e23f7a31131c0412a2e (diff)
SkypeWeb: TRouter refactoring.
git-svn-id: http://svn.miranda-ng.org/main/trunk@13499 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/skype_poll_processing.cpp')
-rw-r--r--protocols/SkypeWeb/src/skype_poll_processing.cpp18
1 files changed, 17 insertions, 1 deletions
diff --git a/protocols/SkypeWeb/src/skype_poll_processing.cpp b/protocols/SkypeWeb/src/skype_poll_processing.cpp
index ead44bb3a3..327bbaae3d 100644
--- a/protocols/SkypeWeb/src/skype_poll_processing.cpp
+++ b/protocols/SkypeWeb/src/skype_poll_processing.cpp
@@ -137,7 +137,23 @@ void CSkypeProto::ProcessNewMessageRes(JSONNODE *node)
void CSkypeProto::ProcessConversationUpdateRes(JSONNODE *node)
{
- return; //it should be rewritten
+ JSONNODE *lastMessage = json_get(node, "lastMessage");
+ JSONNODE *properties = json_get(node, "properties" );
+
+ ptrA convLink(mir_t2a(json_as_string(json_get(lastMessage, "conversationLink"))));
+
+ if (strstr(convLink, "/8:"))
+ {
+ ptrA skypename(ContactUrlToName(convLink));
+ MCONTACT hContact = FindContact(skypename);
+
+ if (hContact != NULL)
+ {
+ ptrA consumptionhorizon(mir_t2a(json_as_string(json_get(properties, "consumptionhorizon"))));
+
+ //server return bad data
+ }
+ }
}
void CSkypeProto::ProcessThreadUpdateRes(JSONNODE *node)