mirror of
				https://github.com/vector-im/element-web.git
				synced 2025-10-31 08:11:16 +01:00 
			
		
		
		
	Merge pull request #4013 from matrix-org/jryans/padlock-flag
Add temporary feature flag to control padlocks
This commit is contained in:
		
						commit
						11008cfabf
					
				| @ -17,6 +17,7 @@ limitations under the License. | |||||||
| import React from 'react'; | import React from 'react'; | ||||||
| import { _t } from '../../../languageHandler'; | import { _t } from '../../../languageHandler'; | ||||||
| import * as sdk from '../../../index'; | import * as sdk from '../../../index'; | ||||||
|  | import SettingsStore from '../../../settings/SettingsStore'; | ||||||
| 
 | 
 | ||||||
| export default class InviteOnlyIcon extends React.Component { | export default class InviteOnlyIcon extends React.Component { | ||||||
|     constructor() { |     constructor() { | ||||||
| @ -36,6 +37,10 @@ export default class InviteOnlyIcon extends React.Component { | |||||||
|     }; |     }; | ||||||
| 
 | 
 | ||||||
|     render() { |     render() { | ||||||
|  |         if (!SettingsStore.isFeatureEnabled("feature_invite_only_padlocks")) { | ||||||
|  |             return null; | ||||||
|  |         } | ||||||
|  | 
 | ||||||
|         const Tooltip = sdk.getComponent("elements.Tooltip"); |         const Tooltip = sdk.getComponent("elements.Tooltip"); | ||||||
|         let tooltip; |         let tooltip; | ||||||
|         if (this.state.hover) { |         if (this.state.hover) { | ||||||
|  | |||||||
| @ -374,6 +374,7 @@ | |||||||
|     "Enable cross-signing to verify per-user instead of per-session (in development)": "Enable cross-signing to verify per-user instead of per-session (in development)", |     "Enable cross-signing to verify per-user instead of per-session (in development)": "Enable cross-signing to verify per-user instead of per-session (in development)", | ||||||
|     "Enable local event indexing and E2EE search (requires restart)": "Enable local event indexing and E2EE search (requires restart)", |     "Enable local event indexing and E2EE search (requires restart)": "Enable local event indexing and E2EE search (requires restart)", | ||||||
|     "Show info about bridges in room settings": "Show info about bridges in room settings", |     "Show info about bridges in room settings": "Show info about bridges in room settings", | ||||||
|  |     "Show padlocks on invite only rooms": "Show padlocks on invite only rooms", | ||||||
|     "Enable Emoji suggestions while typing": "Enable Emoji suggestions while typing", |     "Enable Emoji suggestions while typing": "Enable Emoji suggestions while typing", | ||||||
|     "Use compact timeline layout": "Use compact timeline layout", |     "Use compact timeline layout": "Use compact timeline layout", | ||||||
|     "Show a placeholder for removed messages": "Show a placeholder for removed messages", |     "Show a placeholder for removed messages": "Show a placeholder for removed messages", | ||||||
|  | |||||||
| @ -160,6 +160,12 @@ export const SETTINGS = { | |||||||
|         displayName: _td("Show info about bridges in room settings"), |         displayName: _td("Show info about bridges in room settings"), | ||||||
|         default: false, |         default: false, | ||||||
|     }, |     }, | ||||||
|  |     "feature_invite_only_padlocks": { | ||||||
|  |         isFeature: true, | ||||||
|  |         supportedLevels: LEVELS_FEATURE, | ||||||
|  |         displayName: _td("Show padlocks on invite only rooms"), | ||||||
|  |         default: true, | ||||||
|  |     }, | ||||||
|     "MessageComposerInput.suggestEmoji": { |     "MessageComposerInput.suggestEmoji": { | ||||||
|         supportedLevels: LEVELS_ACCOUNT_SETTINGS, |         supportedLevels: LEVELS_ACCOUNT_SETTINGS, | ||||||
|         displayName: _td('Enable Emoji suggestions while typing'), |         displayName: _td('Enable Emoji suggestions while typing'), | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user