From 73c8ef50d104b995701db117b369a37f1bf76433 Mon Sep 17 00:00:00 2001 From: Richard Lewis Date: Mon, 26 Feb 2018 13:37:53 +0000 Subject: [PATCH] Fix current roomID. --- src/IntegrationManager.js | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/IntegrationManager.js b/src/IntegrationManager.js index dde3294536..35b3baafbd 100644 --- a/src/IntegrationManager.js +++ b/src/IntegrationManager.js @@ -18,6 +18,7 @@ import sdk from './index'; import SdkConfig from './SdkConfig'; import ScalarMessaging from './ScalarMessaging'; import ScalarAuthClient from './ScalarAuthClient'; +import RoomViewStore from './stores/RoomViewStore'; if (!global.im) { global.im = {}; @@ -56,14 +57,14 @@ export default class IntegrationManager { return; } integType = 'type_' + integType; + console.warn("Current room", RoomViewStore.getRoomId()); const src = (global.im.client && global.im.client.hasCredentials()) ? - // FIXME -- Currently broken. Get current room ID - global.im.client.getScalarInterfaceUrlForRoom( - currentRoomId, - integType, - integId, - ) : - null; + global.im.client.getScalarInterfaceUrlForRoom( + RoomViewStore.getRoomId(), + integType, + integId, + ) : + null; Modal.createTrackedDialog('Integrations Manager', '', IntegrationsManager, { src: src, }, "mx_IntegrationsManager");