Skip to content

Commit 598c596

Browse files
committed
feat: add room list section labs flag
1 parent 9fa016c commit 598c596

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

apps/web/src/i18n/strings/en_EN.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1567,6 +1567,7 @@
15671567
"render_reaction_images_description": "Sometimes referred to as \"custom emojis\".",
15681568
"report_to_moderators": "Report to moderators",
15691569
"report_to_moderators_description": "In rooms that support moderation, the “Report” button will let you report abuse to room moderators.",
1570+
"room_list_sections": "Room list sections",
15701571
"share_history_on_invite": "Share encrypted history with new members",
15711572
"share_history_on_invite_description": "When inviting a user to an encrypted room that has history visibility set to \"shared\", share encrypted history with that user, and accept encrypted history when you are invited to such a room.",
15721573
"share_history_on_invite_warning": "This feature is EXPERIMENTAL and not all security precautions are implemented. Do not enable on production accounts.",

apps/web/src/settings/Settings.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ export interface Settings {
223223
"feature_dynamic_room_predecessors": IFeature;
224224
"feature_render_reaction_images": IFeature;
225225
"feature_new_room_list": IFeature;
226+
"feature_room_list_sections": IFeature;
226227
"feature_ask_to_join": IFeature;
227228
"feature_notifications": IFeature;
228229
"feature_msc4362_encrypted_state_events": IFeature;
@@ -693,6 +694,15 @@ export const SETTINGS: Settings = {
693694
default: true,
694695
controller: new ReloadOnChangeController(),
695696
},
697+
"feature_room_list_sections": {
698+
supportedLevels: LEVELS_DEVICE_ONLY_SETTINGS_WITH_CONFIG_PRIORITISED,
699+
labsGroup: LabGroup.Ui,
700+
displayName: _td("labs|room_list_sections"),
701+
description: _td("labs|under_active_development"),
702+
isFeature: true,
703+
default: false,
704+
controller: new ReloadOnChangeController(),
705+
},
696706
/**
697707
* With the transition to Compound we are moving to a base font size
698708
* of 16px. We're taking the opportunity to move away from the `baseFontSize`

0 commit comments

Comments
 (0)