Skip to content
This repository was archived by the owner on May 18, 2025. It is now read-only.

Commit 14f1e9f

Browse files
authored
Merge pull request matrix-org#5839 from matrix-org/jryans/enable-history-sharing
Enable sharing historical keys on invite
2 parents 8aa4b1a + fc0ee15 commit 14f1e9f

File tree

3 files changed

+2
-11
lines changed

3 files changed

+2
-11
lines changed

src/components/views/dialogs/InviteDialog.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -712,8 +712,7 @@ export default class InviteDialog extends React.PureComponent<IInviteDialogProps
712712
this.props.onFinished();
713713
}
714714

715-
if (cli.isRoomEncrypted(this.props.roomId) &&
716-
SettingsStore.getValue("feature_room_history_key_sharing")) {
715+
if (cli.isRoomEncrypted(this.props.roomId)) {
717716
const visibilityEvent = room.currentState.getStateEvents(
718717
"m.room.history_visibility", "",
719718
);
@@ -1344,8 +1343,7 @@ export default class InviteDialog extends React.PureComponent<IInviteDialogProps
13441343
buttonText = _t("Invite");
13451344
goButtonFn = this._inviteUsers;
13461345

1347-
if (SettingsStore.getValue("feature_room_history_key_sharing") &&
1348-
cli.isRoomEncrypted(this.props.roomId)) {
1346+
if (cli.isRoomEncrypted(this.props.roomId)) {
13491347
const room = cli.getRoom(this.props.roomId);
13501348
const visibilityEvent = room.currentState.getStateEvents(
13511349
"m.room.history_visibility", "",

src/i18n/strings/en_EN.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -800,7 +800,6 @@
800800
"Show message previews for reactions in DMs": "Show message previews for reactions in DMs",
801801
"Show message previews for reactions in all rooms": "Show message previews for reactions in all rooms",
802802
"Offline encrypted messaging using dehydrated devices": "Offline encrypted messaging using dehydrated devices",
803-
"Share decryption keys for room history when inviting users": "Share decryption keys for room history when inviting users",
804803
"Enable advanced debugging for the room list": "Enable advanced debugging for the room list",
805804
"Show info about bridges in room settings": "Show info about bridges in room settings",
806805
"Font size": "Font size",

src/settings/Settings.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -220,12 +220,6 @@ export const SETTINGS: {[setting: string]: ISetting} = {
220220
supportedLevels: LEVELS_FEATURE,
221221
default: false,
222222
},
223-
"feature_room_history_key_sharing": {
224-
isFeature: true,
225-
displayName: _td("Share decryption keys for room history when inviting users"),
226-
supportedLevels: LEVELS_FEATURE,
227-
default: false,
228-
},
229223
"advancedRoomListLogging": {
230224
// TODO: Remove flag before launch: https://github.com/vector-im/element-web/issues/14231
231225
displayName: _td("Enable advanced debugging for the room list"),

0 commit comments

Comments
 (0)