diff options
author | George Hazan <ghazan@miranda.im> | 2020-02-12 19:22:08 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-02-12 19:22:08 +0300 |
commit | c41c8a91db4285a9e7ce0da1be715f67be97ad3b (patch) | |
tree | 23900d8b607c2512f32a5189ff417e2e3153df46 /protocols/Facebook/src/server.cpp | |
parent | 7c41ebba4f0c04a4a779ac0698027ec738cac0ea (diff) |
Facebook: restored option to keep messages unread at the server
Diffstat (limited to 'protocols/Facebook/src/server.cpp')
-rw-r--r-- | protocols/Facebook/src/server.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/protocols/Facebook/src/server.cpp b/protocols/Facebook/src/server.cpp index f9d2eb5b2f..b4adb46d35 100644 --- a/protocols/Facebook/src/server.cpp +++ b/protocols/Facebook/src/server.cpp @@ -358,6 +358,9 @@ int FacebookProto::OnMarkedRead(WPARAM, LPARAM hDbEvent) if (mir_strcmp(szProto, m_szModuleName)) return 0; + if (m_bKeepUnread) + return 0; + JSONNode root; root << BOOL_PARAM("state", true) << INT_PARAM("syncSeqId", m_sid) << CHAR_PARAM("mark", "read"); if (isChatRoom(hContact)) root << CHAR_PARAM("threadFbId", getMStringA(hContact, DBKEY_ID)); |