Pass room name.

This commit is contained in:
Richard Lewis 2018-02-09 11:44:27 +00:00
parent 234ca8b062
commit 9e3c1fbc7a
6 changed files with 10 additions and 7 deletions

View file

@ -105,10 +105,13 @@ class ScalarAuthClient {
return defer.promise;
}
getScalarInterfaceUrlForRoom(roomId, screen, id) {
getScalarInterfaceUrlForRoom(room, screen, id) {
const roomId = room.roomId;
const roomName = room.name;
let url = SdkConfig.get().integrations_ui_url;
url += "?scalar_token=" + encodeURIComponent(this.scalarToken);
url += "&room_id=" + encodeURIComponent(roomId);
url += "&room_name=" + encodeURIComponent(roomName);
if (id) {
url += '&integ_id=' + encodeURIComponent(id);
}