Fix current roomID.

This commit is contained in:
Richard Lewis 2018-02-26 13:37:53 +00:00
parent 707e3f3382
commit 73c8ef50d1

View file

@ -18,6 +18,7 @@ import sdk from './index';
import SdkConfig from './SdkConfig'; import SdkConfig from './SdkConfig';
import ScalarMessaging from './ScalarMessaging'; import ScalarMessaging from './ScalarMessaging';
import ScalarAuthClient from './ScalarAuthClient'; import ScalarAuthClient from './ScalarAuthClient';
import RoomViewStore from './stores/RoomViewStore';
if (!global.im) { if (!global.im) {
global.im = {}; global.im = {};
@ -56,14 +57,14 @@ export default class IntegrationManager {
return; return;
} }
integType = 'type_' + integType; integType = 'type_' + integType;
console.warn("Current room", RoomViewStore.getRoomId());
const src = (global.im.client && global.im.client.hasCredentials()) ? const src = (global.im.client && global.im.client.hasCredentials()) ?
// FIXME -- Currently broken. Get current room ID global.im.client.getScalarInterfaceUrlForRoom(
global.im.client.getScalarInterfaceUrlForRoom( RoomViewStore.getRoomId(),
currentRoomId, integType,
integType, integId,
integId, ) :
) : null;
null;
Modal.createTrackedDialog('Integrations Manager', '', IntegrationsManager, { Modal.createTrackedDialog('Integrations Manager', '', IntegrationsManager, {
src: src, src: src,
}, "mx_IntegrationsManager"); }, "mx_IntegrationsManager");