diff --git a/src/room/InCallView.tsx b/src/room/InCallView.tsx index e096dd54..5ceb30f5 100644 --- a/src/room/InCallView.tsx +++ b/src/room/InCallView.tsx @@ -435,6 +435,19 @@ export const InCallView: FC = ({ [vm], ); + useEffect(() => { + widget?.api.transport + .send( + gridMode === "grid" + ? ElementWidgetActions.TileLayout + : ElementWidgetActions.SpotlightLayout, + {}, + ) + .catch((e) => { + logger.error("Failed to send layout change to widget API", e); + }); + }, [gridMode]); + useEffect(() => { if (widget) { const onTileLayout = (ev: CustomEvent): void => {