Show ringing status even on spotlight tiles (except in app bar mode)

This commit is contained in:
Robin
2026-06-22 12:55:37 +02:00
parent 27abf816f5
commit a456e47796
8 changed files with 68 additions and 15 deletions

View File

@@ -232,6 +232,10 @@ export interface CallViewModel {
* View model for info relating to ringing, timing out, calling back, etc.
*/
ringingVm$: Behavior<RingingMediaViewModel | null>;
/**
* Which visual element the ringing status should be shown in.
*/
ringingStatusLocation: "app_bar" | "tile";
/** Observable that emits when the user should leave the call (hangup pressed, widget action, error).
* THIS DOES NOT LEAVE THE CALL YET. The only way to leave the call (send the hangup event) is
* - by ending the scope
@@ -1701,6 +1705,8 @@ export function createCallViewModel$(
return {
autoLeave$: autoLeave$,
ringingVm$: ringingMedia$,
ringingStatusLocation:
urlParams.header === HeaderStyle.AppBar ? "app_bar" : "tile",
leave$: leave$,
hangup: (): void => userHangup$.next(),
join: localMembership.requestJoinAndPublish,