Fix: widget hangup action not working

This commit is contained in:
Valere
2025-10-23 19:20:21 +02:00
parent 06337b9ae6
commit 23bcb5777c
3 changed files with 73 additions and 3 deletions

View File

@@ -1053,8 +1053,12 @@ export class CallViewModel {
fromEvent(
widget.lazyActions,
ElementWidgetActions.HangupCall,
) as Observable<[CustomEvent<IWidgetApiRequest>]>
).pipe(tap(([ev]) => widget!.api.transport.reply(ev.detail, {})));
) as Observable<CustomEvent<IWidgetApiRequest>>
).pipe(
tap((ev) => {
widget!.api.transport.reply(ev.detail, {});
}),
);
public readonly leave$: Observable<
"user" | "timeout" | "decline" | "allOthersLeft"