You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-07 10:46:24 +03:00
Pass the room id to scalar
This commit is contained in:
@@ -33,7 +33,7 @@ class ScalarAuthClient {
|
|||||||
if (err) {
|
if (err) {
|
||||||
defer.reject(err);
|
defer.reject(err);
|
||||||
} else {
|
} else {
|
||||||
defer.resolve(body);
|
defer.resolve(body.access_token);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -367,7 +367,8 @@ module.exports = React.createClass({
|
|||||||
|
|
||||||
getScalarInterfaceUrl: function() {
|
getScalarInterfaceUrl: function() {
|
||||||
var url = SdkConfig.get().integrations_ui_url;
|
var url = SdkConfig.get().integrations_ui_url;
|
||||||
url += "?token=" + this.state.scalar_token;
|
url += "?token=" + encodeURIComponent(this.state.scalar_token);
|
||||||
|
url += "&room_id=" + encodeURIComponent(this.props.room.roomId);
|
||||||
return url;
|
return url;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user