del: windowMode$ from public callViewModel

replace with edgeToEdge$
This commit is contained in:
Timo K
2026-05-20 15:00:28 +02:00
parent c9fa586db1
commit ec3b52f963
4 changed files with 2 additions and 10 deletions

View File

@@ -37,7 +37,7 @@ vi.mock("@livekit/track-processors", () => ({
function buildMinimalCallViewModel(layout: Layout): CallViewModel {
return {
layout$: constant(layout),
windowMode$: constant("normal"),
edgeToEdge$: constant(false),
showHeader$: constant(false),
hangup: (): void => {},
gridMode$: constant("grid"),

View File

@@ -154,9 +154,7 @@ export function createCallFooterViewModel(
// candidat to move into the FooterViewModel
showFooter$: callModel.showFooter$,
hideControls$: constant(!showControls),
asOverlay$: scope.behavior(
callModel.windowMode$.pipe(map((mode) => mode === "flat")),
),
asOverlay$: callModel.edgeToEdge$,
buttonSize$: scope.behavior(
isPip$.pipe(map<boolean, "md" | "lg">((pip) => (pip ? "md" : "lg"))),
),

View File

@@ -591,7 +591,6 @@ export const InCallView: FC<InCallViewProps> = ({
// Only hide the settings button if we have an AppBar header and we are showing the header
const footer = footerVm !== null && (
//asOverlay={edgeToEdge}
<CallFooter ref={footerRef} vm={footerVm} />
);
const allConnections = useBehavior(vm.allConnections$);

View File

@@ -331,10 +331,6 @@ export interface CallViewModel {
{ sender: string; emoji: string; startX: number }[]
>;
/**
* The general shape of the window.
*/
windowMode$: Behavior<WindowMode>;
/**
* The layout of tiles in the call interface.
*/
@@ -1764,7 +1760,6 @@ export function createCallViewModel$(
reconnecting$: localMembership.reconnecting$,
livekitRoomItems$,
connected$: localMembership.connected$,
windowMode$,
};
}