diff --git a/src/vector/jitsi/index.ts b/src/vector/jitsi/index.ts index b055abbf1..8af13ee25 100644 --- a/src/vector/jitsi/index.ts +++ b/src/vector/jitsi/index.ts @@ -204,6 +204,20 @@ const ack = (ev: CustomEvent) => widgetApi.transport.reply(ev ack(ev); }, ); + widgetApi.on(`action:${ElementWidgetActions.TileLayout}`, + (ev: CustomEvent) => { + ev.preventDefault(); + meetApi?.executeCommand('setTileView', true); + ack(ev); + }, + ); + widgetApi.on(`action:${ElementWidgetActions.SpotlightLayout}`, + (ev: CustomEvent) => { + ev.preventDefault(); + meetApi?.executeCommand('setTileView', false); + ack(ev); + }, + ); widgetApi.on(`action:${ElementWidgetActions.StartLiveStream}`, (ev: CustomEvent) => { ev.preventDefault();