summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/skype_messages.cpp
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2015-04-14 12:35:37 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2015-04-14 12:35:37 +0000
commitfff952e50f44761fa85ca90819ac97c47e77b553 (patch)
tree156381ae99a3f4bae3dc42b2bc24650f67daa5a7 /protocols/SkypeWeb/src/skype_messages.cpp
parent67228766fe401efef624b9c24a14d2fb5248e56c (diff)
SkypeWeb: More improvements.
git-svn-id: http://svn.miranda-ng.org/main/trunk@12802 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/skype_messages.cpp')
-rw-r--r--protocols/SkypeWeb/src/skype_messages.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/protocols/SkypeWeb/src/skype_messages.cpp b/protocols/SkypeWeb/src/skype_messages.cpp
index 0fab2ce165..070cf94851 100644
--- a/protocols/SkypeWeb/src/skype_messages.cpp
+++ b/protocols/SkypeWeb/src/skype_messages.cpp
@@ -226,10 +226,13 @@ void CSkypeProto::OnPrivateMessageEvent(JSONNODE *node)
ptrA messageType(mir_t2a(ptrT(json_as_string(json_get(node, "messagetype")))));
MCONTACT hContact = AddContact(skypename, true);
+
if (!mir_strcmpi(messageType, "Control/Typing"))
CallService(MS_PROTO_CONTACTISTYPING, hContact, PROTOTYPE_CONTACTTYPING_INFINITE);
+
else if (!mir_strcmpi(messageType, "Control/ClearTyping"))
CallService(MS_PROTO_CONTACTISTYPING, hContact, PROTOTYPE_CONTACTTYPING_OFF);
+
else if (!mir_strcmpi(messageType, "Text") || !mir_strcmpi(messageType, "RichText"))
{
debugLogA(__FUNCTION__" timestamp = %d clientmsgid = %s", timestamp, clientMsgId);
@@ -238,4 +241,10 @@ void CSkypeProto::OnPrivateMessageEvent(JSONNODE *node)
else if (!mir_strcmpi(messageType, "Event/SkypeVideoMessage"))
return; //not supported
}
+}
+
+int CSkypeProto::OnDbEventRead(WPARAM wParam, LPARAM lParam)
+{
+ debugLogA(__FUNCTION__);
+ return 0;
} \ No newline at end of file