mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-16 13:14:58 +08:00
Make into a labs feature
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
507dcd91d9
commit
015e0b6d77
@ -758,7 +758,7 @@ class TimelinePanel extends React.Component<IProps, IState> {
|
||||
this.lastRMSentEventId = this.state.readMarkerEventId;
|
||||
|
||||
const roomId = this.props.timelineSet.room.roomId;
|
||||
const hiddenRR = !SettingsStore.getValue("sendReadReceipts", roomId);
|
||||
const hiddenRR = SettingsStore.getValue("feature_hiddenReadReceipts", roomId);
|
||||
|
||||
debuglog('TimelinePanel: Sending Read Markers for ',
|
||||
this.props.timelineSet.room.roomId,
|
||||
|
@ -79,7 +79,7 @@ export default class LabsUserSettingsTab extends React.Component {
|
||||
let hiddenReadReceipts;
|
||||
if (this.state.showHiddenReadReceipts) {
|
||||
hiddenReadReceipts = (
|
||||
<SettingsFlag name="sendReadReceipts" level={SettingLevel.ACCOUNT} />
|
||||
<SettingsFlag name="feature_hiddenReadReceipts" level={SettingLevel.ACCOUNT} />
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -333,12 +333,12 @@ export const SETTINGS: {[setting: string]: ISetting} = {
|
||||
supportedLevels: LEVELS_ACCOUNT_SETTINGS,
|
||||
default: null,
|
||||
},
|
||||
"sendReadReceipts": {
|
||||
supportedLevels: LEVELS_ROOM_SETTINGS,
|
||||
"feature_hiddenReadReceipts": {
|
||||
supportedLevels: LEVELS_FEATURE,
|
||||
displayName: _td(
|
||||
"Send read receipts for messages (requires compatible homeserver to disable)",
|
||||
"Don't send read receipts",
|
||||
),
|
||||
default: true,
|
||||
default: false,
|
||||
},
|
||||
"baseFontSize": {
|
||||
displayName: _td("Font size"),
|
||||
|
Loading…
Reference in New Issue
Block a user