1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-16 06:42:26 +03:00

AppsDrawer: Generate room alias for vrdemo

This commit is contained in:
Robert Swain
2017-06-14 13:27:15 +02:00
parent 9c8ab2691b
commit 2d3c886646

View File

@@ -65,7 +65,8 @@ module.exports = React.createClass({
break;
}
case 'vrdemo':
app.name = 'Matrix VR Demo';
app.name = 'Matrix VR Demo - ' + app.data.roomAlias;
app.queryParams = '?roomAlias=' + encodeURIComponent(app.data.roomAlias);
break;
}
@@ -155,6 +156,9 @@ module.exports = React.createClass({
appsStateEvent.vrDemo = {
type: type,
url: 'http://localhost:8000/vrdemo.html',
data: {
roomAlias: '#vrvc' + this.props.room.roomId.replace(/[^A-Za-z0-9]/g, '_') + Date.now(),
},
};
break;
case 'custom':