From 84f37f33494eb0d22a67c59dc58b3bca2bb676c7 Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Wed, 6 May 2015 15:34:16 +0000 Subject: git-svn-id: http://svn.miranda-ng.org/main/trunk@13463 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/SkypeWeb/src/skype_messages.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'protocols/SkypeWeb') diff --git a/protocols/SkypeWeb/src/skype_messages.cpp b/protocols/SkypeWeb/src/skype_messages.cpp index 76bce319aa..5e68bfcfad 100644 --- a/protocols/SkypeWeb/src/skype_messages.cpp +++ b/protocols/SkypeWeb/src/skype_messages.cpp @@ -369,13 +369,18 @@ void CSkypeProto::OnPrivateMessageEvent(JSONNODE *node) } //Picture else if (!mir_strcmpi(messageType, "RichText/Contacts")){} + + if (clientMsgId) + { + PushRequest(new MarkMessageReadRequest(skypename, RegToken, _ttoi(json_as_string(json_get(node, "id"))), timestamp, false, Server)); + } } int CSkypeProto::OnDbEventRead(WPARAM hContact, LPARAM hDbEvent) { debugLogA(__FUNCTION__); - if (IsOnline() && !isChatRoom(hContact) && !mir_strcmp(GetContactProto(hContact), m_szModuleName)) - MarkMessagesRead(hContact, hDbEvent); + //if (IsOnline() && !isChatRoom(hContact) && !mir_strcmp(GetContactProto(hContact), m_szModuleName)) + // MarkMessagesRead(hContact, hDbEvent); return 0; } -- cgit v1.2.3