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

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 ScalarMessaging from './ScalarMessaging';
import ScalarAuthClient from './ScalarAuthClient';
import RoomViewStore from './stores/RoomViewStore';
if (!global.im) {
global.im = {};
@@ -56,10 +57,10 @@ 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,
RoomViewStore.getRoomId(),
integType,
integId,
) :