forked from github/cinny
add url as a param for widget url
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user