AppsDrawer: Generate room alias for vrdemo
This commit is contained in:
parent
9c8ab2691b
commit
2d3c886646
1 changed files with 5 additions and 1 deletions
|
@ -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':
|
||||
|
|
Loading…
Reference in a new issue