Make into a labs feature

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner 2021-08-06 07:51:57 +02:00
parent 507dcd91d9
commit 015e0b6d77
No known key found for this signature in database
GPG Key ID: CC823428E9B582FB
3 changed files with 6 additions and 6 deletions

View File

@ -758,7 +758,7 @@ class TimelinePanel extends React.Component<IProps, IState> {
this.lastRMSentEventId = this.state.readMarkerEventId; this.lastRMSentEventId = this.state.readMarkerEventId;
const roomId = this.props.timelineSet.room.roomId; 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 ', debuglog('TimelinePanel: Sending Read Markers for ',
this.props.timelineSet.room.roomId, this.props.timelineSet.room.roomId,

View File

@ -79,7 +79,7 @@ export default class LabsUserSettingsTab extends React.Component {
let hiddenReadReceipts; let hiddenReadReceipts;
if (this.state.showHiddenReadReceipts) { if (this.state.showHiddenReadReceipts) {
hiddenReadReceipts = ( hiddenReadReceipts = (
<SettingsFlag name="sendReadReceipts" level={SettingLevel.ACCOUNT} /> <SettingsFlag name="feature_hiddenReadReceipts" level={SettingLevel.ACCOUNT} />
); );
} }

View File

@ -333,12 +333,12 @@ export const SETTINGS: {[setting: string]: ISetting} = {
supportedLevels: LEVELS_ACCOUNT_SETTINGS, supportedLevels: LEVELS_ACCOUNT_SETTINGS,
default: null, default: null,
}, },
"sendReadReceipts": { "feature_hiddenReadReceipts": {
supportedLevels: LEVELS_ROOM_SETTINGS, supportedLevels: LEVELS_FEATURE,
displayName: _td( displayName: _td(
"Send read receipts for messages (requires compatible homeserver to disable)", "Don't send read receipts",
), ),
default: true, default: false,
}, },
"baseFontSize": { "baseFontSize": {
displayName: _td("Font size"), displayName: _td("Font size"),