diff --git a/src/components/views/right_panel/RoomSummaryCard.tsx b/src/components/views/right_panel/RoomSummaryCard.tsx index 6aaddccdd9..0988960bee 100644 --- a/src/components/views/right_panel/RoomSummaryCard.tsx +++ b/src/components/views/right_panel/RoomSummaryCard.tsx @@ -96,6 +96,11 @@ const AppRow: React.FC = ({ app, room }) => { const name = WidgetUtils.getWidgetName(app); const dataTitle = WidgetUtils.getWidgetDataTitle(app); const subtitle = dataTitle && " - " + dataTitle; + const [canModifyWidget, setCanModifyWidget] = useState(); + + useEffect(() => { + setCanModifyWidget(WidgetUtils.canUserModifyWidgets(room.roomId)); + }, [room.roomId]); const onOpenWidgetClick = () => { defaultDispatcher.dispatch({ @@ -167,7 +172,7 @@ const AppRow: React.FC = ({ app, room }) => { { subtitle } - = ({ app, room }) => { onClick={openMenu} title={_t("Options")} yOffset={-24} - /> + /> }