From 0b70ce7591cd25a336df5a116e9b5253e5584abd Mon Sep 17 00:00:00 2001 From: Gigiaj Date: Thu, 22 May 2025 17:33:36 -0500 Subject: [PATCH] Remove Date.now() that was causing widgetId desync --- src/app/features/room/SmallWidget.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/app/features/room/SmallWidget.ts b/src/app/features/room/SmallWidget.ts index 25bb5bd5..d2e0e379 100644 --- a/src/app/features/room/SmallWidget.ts +++ b/src/app/features/room/SmallWidget.ts @@ -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 }); }