File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11/*
2+ Copyright 2025 Keypair Establishment.
23Copyright 2024 New Vector Ltd.
34Copyright 2021 The Matrix.org Foundation C.I.C.
45
@@ -13,10 +14,17 @@ Please see LICENSE files in the repository root for full details.
1314// Populate this class with the details of your customisations when copying it.
1415
1516import { type ComponentVisibilityCustomisations as IComponentVisibilityCustomisations } from "@element-hq/element-web-module-api" ;
17+ import { UIComponent } from "../settings/UIFeature" ;
1618
1719// A real customisation module will define and export one or more of the
1820// customisation points that make up the interface above.
1921export const ComponentVisibilityCustomisations : IComponentVisibilityCustomisations = {
2022 // while we don't specify the functions here, their defaults are described
2123 // in their pseudo-implementations above.
24+ shouldShowComponent ( component ) {
25+ switch ( component ) {
26+ case UIComponent . CreateSpaces : return false ;
27+ default : return true ;
28+ }
29+ } ,
2230} ;
You can’t perform that action at this time.
0 commit comments