Skip to content

Commit

Permalink
Add option to not send read receipts.
Browse files Browse the repository at this point in the history
Addresses element-hq/element-web#2527.

The side effect of this is that notifications remain stuck. Because the RR isn't sent, the unread notification stays on the client. This also ends up affecting riot-android, and likely riot-ios.

Signed-off-by: Travis Ralston <travpc@gmail.com>
  • Loading branch information
turt2live committed Jun 1, 2017
1 parent 54ae92e commit 75f06cd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/structures/TimelinePanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,7 @@ var TimelinePanel = React.createClass({
const cli = MatrixClientPeg.get();
// if no client or client is guest don't send RR or RM
if (!cli || cli.isGuest()) return;
if (UserSettingsStore.getSyncedSetting('dontSendReadReceipts', false)) return;

let shouldSendRR = true;

Expand Down
4 changes: 4 additions & 0 deletions src/components/structures/UserSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ const SETTINGS_LABELS = [
id: 'autoplayGifsAndVideos',
label: 'Autoplay GIFs and videos',
},
{
id: 'dontSendReadReceipts',
label: "Don't send read receipts"
},
{
id: 'hideReadReceipts',
label: 'Hide read receipts',
Expand Down

0 comments on commit 75f06cd

Please sign in to comment.