mirror of
https://github.com/vector-im/element-call.git
synced 2026-03-31 07:00:26 +00:00
Always deal with MediaItem at the LayoutMedia layer
That way we only convert to the view model when we do LayoutMedia => Layout
This commit is contained in:
@@ -21,8 +21,11 @@ export function spotlightExpandedLayout(
|
||||
prevTiles: TileStore,
|
||||
): [SpotlightExpandedLayout, TileStore] {
|
||||
const update = prevTiles.from(visibleTiles);
|
||||
update.registerSpotlight(media.spotlight, true);
|
||||
if (media.pip !== undefined) update.registerGridTile(media.pip);
|
||||
update.registerSpotlight(
|
||||
media.spotlight.map((m) => m.vm),
|
||||
true,
|
||||
);
|
||||
if (media.pip !== undefined) update.registerGridTile(media.pip.vm);
|
||||
const tiles = update.build();
|
||||
|
||||
return [
|
||||
|
||||
Reference in New Issue
Block a user