summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--protocols/SkypeWeb/src/skype_messages.cpp9
1 files changed, 7 insertions, 2 deletions
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;
}