1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-11 20:22:36 +03:00

Generate the correct widget id when opening modal widgets (#8123)

This commit is contained in:
Dominik Henneke
2022-03-23 12:28:37 +01:00
committed by GitHub
parent d9276426fa
commit 9ba1c97770

View File

@@ -241,7 +241,7 @@ export class StopGapWidget extends EventEmitter {
private onOpenModal = async (ev: CustomEvent<IModalWidgetOpenRequest>) => {
ev.preventDefault();
if (ModalWidgetStore.instance.canOpenModalWidget()) {
ModalWidgetStore.instance.openModalWidget(ev.detail.data, this.mockWidget);
ModalWidgetStore.instance.openModalWidget(ev.detail.data, this.mockWidget, this.roomId);
this.messaging.transport.reply(ev.detail, {}); // ack
} else {
this.messaging.transport.reply(ev.detail, {