Support secret per-room hidden read receipts

This commit is contained in:
Travis Ralston 2019-09-06 13:02:18 -06:00
parent af35cdc2ea
commit e29184ae1d
2 changed files with 3 additions and 2 deletions

View file

@ -685,7 +685,8 @@ const TimelinePanel = createReactClass({
}
this.lastRMSentEventId = this.state.readMarkerEventId;
const hiddenRR = !SettingsStore.getValue("sendReadReceipts");
const roomId = this.props.timelineSet.room.roomId;
const hiddenRR = !SettingsStore.getValue("sendReadReceipts", roomId);
debuglog('TimelinePanel: Sending Read Markers for ',
this.props.timelineSet.room.roomId,

View file

@ -395,7 +395,7 @@ export const SETTINGS = {
default: null,
},
"sendReadReceipts": {
supportedLevels: LEVELS_ACCOUNT_SETTINGS,
supportedLevels: LEVELS_ROOM_SETTINGS,
displayName: _td(
"Send read receipts for messages (requires compatible homeserver to disable)",
),