summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2017-05-05 23:50:58 +0200
committerRobert Pösel <robyer@seznam.cz>2017-05-05 23:50:58 +0200
commitf40f5893fdce1242e8b8cd3292654ef6f50768de (patch)
treebd9f360b09d97b6477e47c176a06468bb4c78ec2 /protocols/FacebookRM
parente8c3255b20356bcbf80f0579132ff767b745c4e8 (diff)
Facebook: New (temporary) hidden option to ignore chat message read notify (addresses #799)
Add byte key "NoChatMessageReadNotify" with value 1 to use it.
Diffstat (limited to 'protocols/FacebookRM')
-rw-r--r--protocols/FacebookRM/src/proto.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/protocols/FacebookRM/src/proto.cpp b/protocols/FacebookRM/src/proto.cpp
index 8cc10e531d..fe95fb1ee0 100644
--- a/protocols/FacebookRM/src/proto.cpp
+++ b/protocols/FacebookRM/src/proto.cpp
@@ -1149,10 +1149,13 @@ void FacebookProto::MessageRead(MCONTACT hContact)
st.hIcon = IcoLib_GetIconByHandle(GetIconHandle("read"));
if (isChatRoom(hContact)) {
- // Load readers names
- ptrW treaders(getWStringA(hContact, FACEBOOK_KEY_MESSAGE_READERS));
- mir_snwprintf(st.tszText, TranslateT("Message read: %s by %s"), ttime, treaders ? treaders : L"???");
- CallService(MS_MSG_SETSTATUSTEXT, (WPARAM)hContact, (LPARAM)&st);
+ // FIXME: Remove this condition when #799 is fixed
+ if (!getBool("NoChatMessageReadNotify")) {
+ // Load readers names
+ ptrW treaders(getWStringA(hContact, FACEBOOK_KEY_MESSAGE_READERS));
+ mir_snwprintf(st.tszText, TranslateT("Message read: %s by %s"), ttime, treaders ? treaders : L"???");
+ CallService(MS_MSG_SETSTATUSTEXT, (WPARAM)hContact, (LPARAM)&st);
+ }
} else if (!ServiceExists(MS_MESSAGESTATE_UPDATE)){
mir_snwprintf(st.tszText, TranslateT("Message read: %s"), ttime);
CallService(MS_MSG_SETSTATUSTEXT, (WPARAM)hContact, (LPARAM)&st);