mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-16 21:24:59 +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;
|
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,
|
||||||
|
@ -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} />
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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"),
|
||||||
|
Loading…
Reference in New Issue
Block a user