Add model for one-on-one layout

This commit is contained in:
Robin
2024-06-07 12:27:13 -04:00
parent 183d2d9050
commit e0b10d89b5
2 changed files with 30 additions and 12 deletions

View File

@@ -330,10 +330,7 @@ export const InCallView: FC<InCallViewProps> = ({
vm.layout.pipe(
map((l) => {
let makeLayout: CallLayout<Layout>;
if (
l.type === "grid" &&
!(l.grid.length === 2 && l.spotlight === undefined)
)
if (l.type === "grid")
makeLayout = makeGridLayout as CallLayout<Layout>;
else if (l.type === "spotlight")
makeLayout = makeSpotlightLayout as CallLayout<Layout>;