AppsDrawer: Generate room alias for vrdemo

pull/21833/head
Robert Swain 2017-06-14 13:27:15 +02:00
parent 9c8ab2691b
commit 2d3c886646
1 changed files with 5 additions and 1 deletions

View File

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