From bfc2c884bcbc38894a63dd18feb6459ec6b39dfa Mon Sep 17 00:00:00 2001 From: David Langley Date: Thu, 4 Dec 2025 15:30:54 +0000 Subject: [PATCH] Add ability to the room view to hide widgets (#31400) * add hideWidgets prop * Trigger Build --- src/components/structures/RoomView.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/components/structures/RoomView.tsx b/src/components/structures/RoomView.tsx index cb3256dc65..169bd3d560 100644 --- a/src/components/structures/RoomView.tsx +++ b/src/components/structures/RoomView.tsx @@ -185,6 +185,11 @@ interface IRoomProps extends RoomViewProps { * If true, hide the pinned messages banner */ hidePinnedMessageBanner?: boolean; + + /** + * If true, hide the widgets + */ + hideWidgets?: boolean; } export { MainSplitContentType }; @@ -897,6 +902,7 @@ export class RoomView extends React.Component { private shouldShowApps(room: Room): boolean { if (!BROWSER_SUPPORTS_SANDBOX || !room) return false; + if (this.props.hideWidgets) return false; // Check if user has previously chosen to hide the app drawer for this // room. If so, do not show apps