From 42252829c699667163101f16b98db147af86ab20 Mon Sep 17 00:00:00 2001 From: Gigiaj Date: Wed, 28 May 2025 16:08:01 -0500 Subject: [PATCH] Bind the on messaging iframe for easier access in hangup/join handling --- src/app/features/call/SmallWidget.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/features/call/SmallWidget.ts b/src/app/features/call/SmallWidget.ts index d057e806..2b24e978 100644 --- a/src/app/features/call/SmallWidget.ts +++ b/src/app/features/call/SmallWidget.ts @@ -90,6 +90,8 @@ export class SmallWidget extends EventEmitter { public url?: string; + public iframe: HTMLElement | null; + private type: string; // Type of the widget (e.g., 'm.call') private readUpToMap: { [roomId: string]: string } = {}; // room ID to event ID @@ -123,7 +125,7 @@ export class SmallWidget extends EventEmitter { true, this.roomId ); - + this.iframe = iframe; this.messaging = new ClientWidgetApi(this.mockWidget, iframe, driver); // Emit events during the widget lifecycle