mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-06 07:20:29 +03:00
add url as a param for widget url
This commit is contained in:
parent
f3612e23c6
commit
4486ef1e72
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue