Add feature flag
							parent
							
								
									d9943754f7
								
							
						
					
					
						commit
						7ee5f7ba38
					
				|  | @ -28,6 +28,7 @@ import BridgeSettingsTab from "../settings/tabs/room/BridgeSettingsTab"; | |||
| import sdk from "../../../index"; | ||||
| import MatrixClientPeg from "../../../MatrixClientPeg"; | ||||
| import dis from "../../../dispatcher"; | ||||
| import SettingsStore from "../settings/SettingsStore"; | ||||
| 
 | ||||
| export default class RoomSettingsDialog extends React.Component { | ||||
|     static propTypes = { | ||||
|  | @ -53,7 +54,8 @@ export default class RoomSettingsDialog extends React.Component { | |||
| 
 | ||||
|     _getTabs() { | ||||
|         const tabs = []; | ||||
|         const shouldShowBridgeIcon = BridgeSettingsTab.getBridgeStateEvents(this.props.roomId).length > 0; | ||||
|         const featureFlag = SettingsStore.isFeatureEnabled("feature_bridge_state"); | ||||
|         const shouldShowBridgeIcon = featureFlag && BridgeSettingsTab.getBridgeStateEvents(this.props.roomId).length > 0; | ||||
| 
 | ||||
|         tabs.push(new Tab( | ||||
|             _td("General"), | ||||
|  |  | |||
|  | @ -1932,5 +1932,6 @@ | |||
|     "If you didn't remove the recovery method, an attacker may be trying to access your account. Change your account password and set a new recovery method immediately in Settings.": "If you didn't remove the recovery method, an attacker may be trying to access your account. Change your account password and set a new recovery method immediately in Settings.", | ||||
|     "Failed to set direct chat tag": "Failed to set direct chat tag", | ||||
|     "Failed to remove tag %(tagName)s from room": "Failed to remove tag %(tagName)s from room", | ||||
|     "Failed to add tag %(tagName)s to room": "Failed to add tag %(tagName)s to room" | ||||
|     "Failed to add tag %(tagName)s to room": "Failed to add tag %(tagName)s to room", | ||||
|     "Show info about bridges in room settings": "Show info about bridges in room settings" | ||||
| } | ||||
|  |  | |||
|  | @ -154,6 +154,12 @@ export const SETTINGS = { | |||
|         displayName: _td("Enable local event indexing and E2EE search (requires restart)"), | ||||
|         default: false, | ||||
|     }, | ||||
|     "feature_bridge_state": { | ||||
|         isFeature: true, | ||||
|         supportedLevels: LEVELS_FEATURE, | ||||
|         displayName: _td("Show info about bridges in room settings"), | ||||
|         default: false, | ||||
|     }, | ||||
|     "useCiderComposer": { | ||||
|         displayName: _td("Use the new, faster, composer for writing messages"), | ||||
|         supportedLevels: LEVELS_ACCOUNT_SETTINGS, | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 Half-Shot
						Half-Shot