diff options
Diffstat (limited to 'protocols/SkypeWeb/src/skype_poll_processing.cpp')
-rw-r--r-- | protocols/SkypeWeb/src/skype_poll_processing.cpp | 37 |
1 files changed, 35 insertions, 2 deletions
diff --git a/protocols/SkypeWeb/src/skype_poll_processing.cpp b/protocols/SkypeWeb/src/skype_poll_processing.cpp index 4f9a2cf241..376e366eae 100644 --- a/protocols/SkypeWeb/src/skype_poll_processing.cpp +++ b/protocols/SkypeWeb/src/skype_poll_processing.cpp @@ -84,8 +84,31 @@ void CSkypeProto::ProcessNewMessageRes(JSONNODE *node) time_t timestamp = IsoToUnixTime(composeTime);
if (strstr(conversationLink, "/19:"))
{
- const char *chatname;
- chatname = ContactUrlToName(conversationLink);
+ ptrA chatname(ChatUrlToName(conversationLink));
+ ptrA topic(mir_t2a(ptrT(json_as_string(json_get(node, "threadtopic")))));
+ if (GetContact(chatname) == NULL)
+ AddChatRoom(chatname);
+
+ if (!mir_strcmpi(messageType, "Text") || !mir_strcmpi(messageType, "RichText"))
+ {
+
+ }
+ else if (!mir_strcmpi(messageType, "ThreadActivity/AddMember"))
+ {
+
+ }
+ else if (!mir_strcmpi(messageType, "ThreadActivity/DeleteMember"))
+ {
+
+ }
+ else if (!mir_strcmpi(messageType, "ThreadActivity/TopicUpdate"))
+ {
+
+ }
+ else if (!mir_strcmpi(messageType, "ThreadActivity/RoleUpdate"))
+ {
+
+ }
return; //chats not supported
}
else if (strstr(conversationLink, "/8:"))
@@ -119,4 +142,14 @@ void CSkypeProto::ProcessNewMessageRes(JSONNODE *node) return; //not supported
}
}
+}
+
+void CSkypeProto::ProcessConversationUpdateRes(JSONNODE *node)
+{
+ return;
+}
+
+void CSkypeProto::ProcessThreadUpdateRes(JSONNODE *node)
+{
+ return;
}
\ No newline at end of file |