add url as a param for widget url

This commit is contained in:
Gigiaj 2025-05-11 17:55:19 -05:00
parent f3612e23c6
commit 4486ef1e72

View file

@ -86,6 +86,8 @@ export class SmallWidget extends EventEmitter {
private roomId?: string; private roomId?: string;
public url?: string;
private type: string; // Type of the widget (e.g., 'm.call') private type: string; // Type of the widget (e.g., 'm.call')
private readUpToMap: { [roomId: string]: string } = {}; // room ID to event ID private readUpToMap: { [roomId: string]: string } = {}; // room ID to event ID
@ -98,6 +100,7 @@ export class SmallWidget extends EventEmitter {
super(); super();
this.client = iapp.client; this.client = iapp.client;
this.roomId = iapp.roomId; this.roomId = iapp.roomId;
this.url = iapp.url;
this.type = iapp.type; this.type = iapp.type;
this.mockWidget = new CinnyWidget(iapp); this.mockWidget = new CinnyWidget(iapp);
} }