mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-06 07:20:29 +03:00
Remove Date.now() that was causing widgetId desync
This commit is contained in:
parent
7ef33400c1
commit
0b70ce7591
1 changed files with 2 additions and 3 deletions
|
|
@ -48,7 +48,7 @@ export const getWidgetUrl = (
|
||||||
|
|
||||||
const params = new URLSearchParams({
|
const params = new URLSearchParams({
|
||||||
embed: 'true',
|
embed: 'true',
|
||||||
widgetId: `element-call-${roomId}-${Date.now()}`,
|
widgetId: `element-call-${roomId}`,
|
||||||
appPrompt: 'false',
|
appPrompt: 'false',
|
||||||
preload: 'false',
|
preload: 'false',
|
||||||
skipLobby: setParams.skipLobby ?? 'true',
|
skipLobby: setParams.skipLobby ?? 'true',
|
||||||
|
|
@ -84,7 +84,7 @@ export class SmallWidget extends EventEmitter {
|
||||||
|
|
||||||
private mockWidget: CinnyWidget;
|
private mockWidget: CinnyWidget;
|
||||||
|
|
||||||
private roomId?: string;
|
public roomId?: string;
|
||||||
|
|
||||||
public url?: string;
|
public url?: string;
|
||||||
|
|
||||||
|
|
@ -147,7 +147,6 @@ export class SmallWidget extends EventEmitter {
|
||||||
const { type } = ev.detail.data;
|
const { type } = ev.detail.data;
|
||||||
|
|
||||||
ev.preventDefault();
|
ev.preventDefault();
|
||||||
|
|
||||||
if (room === null) {
|
if (room === null) {
|
||||||
return this.messaging?.transport.reply(ev.detail, { events });
|
return this.messaging?.transport.reply(ev.detail, { events });
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue