mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-05 23:10:28 +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({
|
||||
embed: 'true',
|
||||
widgetId: `element-call-${roomId}-${Date.now()}`,
|
||||
widgetId: `element-call-${roomId}`,
|
||||
appPrompt: 'false',
|
||||
preload: 'false',
|
||||
skipLobby: setParams.skipLobby ?? 'true',
|
||||
|
|
@ -84,7 +84,7 @@ export class SmallWidget extends EventEmitter {
|
|||
|
||||
private mockWidget: CinnyWidget;
|
||||
|
||||
private roomId?: string;
|
||||
public roomId?: string;
|
||||
|
||||
public url?: string;
|
||||
|
||||
|
|
@ -147,7 +147,6 @@ export class SmallWidget extends EventEmitter {
|
|||
const { type } = ev.detail.data;
|
||||
|
||||
ev.preventDefault();
|
||||
|
||||
if (room === null) {
|
||||
return this.messaging?.transport.reply(ev.detail, { events });
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue