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
Use app ID for element key and pass screen parameter to scalar.
This commit is contained in:
@@ -76,10 +76,13 @@ class ScalarAuthClient {
|
||||
return defer.promise;
|
||||
}
|
||||
|
||||
getScalarInterfaceUrlForRoom(roomId) {
|
||||
getScalarInterfaceUrlForRoom(roomId, screen) {
|
||||
var url = SdkConfig.get().integrations_ui_url;
|
||||
url += "?scalar_token=" + encodeURIComponent(this.scalarToken);
|
||||
url += "&room_id=" + encodeURIComponent(roomId);
|
||||
if (screen) {
|
||||
url += '&screen=' + encodeURIComponent(screen);
|
||||
}
|
||||
return url;
|
||||
}
|
||||
|
||||
@@ -89,4 +92,3 @@ class ScalarAuthClient {
|
||||
}
|
||||
|
||||
module.exports = ScalarAuthClient;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user