Clear requiresClient and show pop-out if widget-api fails to ready (#11321)

* Clear requiresClient and show pop-out if widget-api fails to ready

* Upgrade matrix-widget-api
This commit is contained in:
Michael Telatynski
2023-08-03 10:14:15 +00:00
committed by GitHub
parent 755f8d7ab0
commit 44f51fd1cb
4 changed files with 7 additions and 12 deletions
+1
View File
@@ -285,6 +285,7 @@ export class StopGapWidget extends EventEmitter {
this.messaging = new ClientWidgetApi(this.mockWidget, iframe, driver);
this.messaging.on("preparing", () => this.emit("preparing"));
this.messaging.on("error:preparing", (err: unknown) => this.emit("error:preparing", err));
this.messaging.on("ready", () => {
WidgetMessagingStore.instance.storeMessaging(this.mockWidget, this.roomId, this.messaging!);
this.emit("ready");