reduce PR diff

This commit is contained in:
Timo K
2025-12-22 13:42:16 +01:00
parent 852d2ee375
commit 725ff31d6f
2 changed files with 7 additions and 13 deletions

View File

@@ -358,7 +358,7 @@ export type InitResult = {
passwordlessUser: boolean;
};
export async function loadClient(): Promise<InitResult | null> {
async function loadClient(): Promise<InitResult | null> {
if (widget) {
// We're inside a widget, so let's engage *matryoshka mode*
logger.log("Using a matryoshka client");

View File

@@ -649,12 +649,6 @@ export function createCallViewModel$(
return acc;
}, []),
),
tap((val) => {
logger.debug(
"livekitRoomItems$ updated",
val.map((v) => v.url),
);
}),
),
[],
);
@@ -1480,10 +1474,10 @@ export function createCallViewModel$(
);
return {
autoLeave$,
callPickupState$,
ringOverlay$,
leave$,
autoLeave$: autoLeave$,
callPickupState$: callPickupState$,
ringOverlay$: ringOverlay$,
leave$: leave$,
hangup: (): void => userHangup$.next(),
join: localMembership.requestJoinAndPublish,
toggleScreenSharing: toggleScreenSharing,
@@ -1509,7 +1503,7 @@ export function createCallViewModel$(
),
null,
),
participantCount$: participantCount,
handsRaised$: handsRaised$,
reactions$: reactions$,
joinSoundEffect$: joinSoundEffect$,
@@ -1518,6 +1512,7 @@ export function createCallViewModel$(
newScreenShare$: newScreenShare$,
audibleReactions$: audibleReactions$,
visibleReactions$: visibleReactions$,
windowMode$: windowMode$,
spotlightExpanded$: spotlightExpanded$,
toggleSpotlightExpanded$: toggleSpotlightExpanded$,
@@ -1545,7 +1540,6 @@ export function createCallViewModel$(
earpieceMode$: earpieceMode$,
audioOutputSwitcher$: audioOutputSwitcher$,
reconnecting$: localMembership.reconnecting$,
participantCount$,
livekitRoomItems$,
connected$: localMembership.connected$,
};