del: windowMode$ from public callViewModel
replace with edgeToEdge$
This commit is contained in:
@@ -37,7 +37,7 @@ vi.mock("@livekit/track-processors", () => ({
|
|||||||
function buildMinimalCallViewModel(layout: Layout): CallViewModel {
|
function buildMinimalCallViewModel(layout: Layout): CallViewModel {
|
||||||
return {
|
return {
|
||||||
layout$: constant(layout),
|
layout$: constant(layout),
|
||||||
windowMode$: constant("normal"),
|
edgeToEdge$: constant(false),
|
||||||
showHeader$: constant(false),
|
showHeader$: constant(false),
|
||||||
hangup: (): void => {},
|
hangup: (): void => {},
|
||||||
gridMode$: constant("grid"),
|
gridMode$: constant("grid"),
|
||||||
|
|||||||
@@ -154,9 +154,7 @@ export function createCallFooterViewModel(
|
|||||||
// candidat to move into the FooterViewModel
|
// candidat to move into the FooterViewModel
|
||||||
showFooter$: callModel.showFooter$,
|
showFooter$: callModel.showFooter$,
|
||||||
hideControls$: constant(!showControls),
|
hideControls$: constant(!showControls),
|
||||||
asOverlay$: scope.behavior(
|
asOverlay$: callModel.edgeToEdge$,
|
||||||
callModel.windowMode$.pipe(map((mode) => mode === "flat")),
|
|
||||||
),
|
|
||||||
buttonSize$: scope.behavior(
|
buttonSize$: scope.behavior(
|
||||||
isPip$.pipe(map<boolean, "md" | "lg">((pip) => (pip ? "md" : "lg"))),
|
isPip$.pipe(map<boolean, "md" | "lg">((pip) => (pip ? "md" : "lg"))),
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -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
|
// Only hide the settings button if we have an AppBar header and we are showing the header
|
||||||
const footer = footerVm !== null && (
|
const footer = footerVm !== null && (
|
||||||
//asOverlay={edgeToEdge}
|
|
||||||
<CallFooter ref={footerRef} vm={footerVm} />
|
<CallFooter ref={footerRef} vm={footerVm} />
|
||||||
);
|
);
|
||||||
const allConnections = useBehavior(vm.allConnections$);
|
const allConnections = useBehavior(vm.allConnections$);
|
||||||
|
|||||||
@@ -331,10 +331,6 @@ export interface CallViewModel {
|
|||||||
{ sender: string; emoji: string; startX: number }[]
|
{ sender: string; emoji: string; startX: number }[]
|
||||||
>;
|
>;
|
||||||
|
|
||||||
/**
|
|
||||||
* The general shape of the window.
|
|
||||||
*/
|
|
||||||
windowMode$: Behavior<WindowMode>;
|
|
||||||
/**
|
/**
|
||||||
* The layout of tiles in the call interface.
|
* The layout of tiles in the call interface.
|
||||||
*/
|
*/
|
||||||
@@ -1764,7 +1760,6 @@ export function createCallViewModel$(
|
|||||||
reconnecting$: localMembership.reconnecting$,
|
reconnecting$: localMembership.reconnecting$,
|
||||||
livekitRoomItems$,
|
livekitRoomItems$,
|
||||||
connected$: localMembership.connected$,
|
connected$: localMembership.connected$,
|
||||||
windowMode$,
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user