Add the "add friends view to room creation
This commit is contained in:
parent
bad4f2bc61
commit
b246a134e2
5 changed files with 204 additions and 39 deletions
|
|
@ -63,7 +63,7 @@ const routes = [
|
|||
component: Join
|
||||
},
|
||||
{
|
||||
path: '/invite',
|
||||
path: '/invite/:roomId?',
|
||||
name: 'Invite',
|
||||
component: () => import('../components/Invite.vue'),
|
||||
meta: {
|
||||
|
|
@ -92,6 +92,11 @@ router.beforeEach((to, from, next) => {
|
|||
//Invite to public room
|
||||
authRequired = false;
|
||||
}
|
||||
} else if (to.name == 'Invite') {
|
||||
if (to.params.roomId) {
|
||||
const roomId = util.sanitizeRoomId(to.params.roomId);
|
||||
router.app.$matrix.setCurrentRoomId(roomId);
|
||||
}
|
||||
}
|
||||
|
||||
// trying to access a restricted page + not logged in
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue