Add the "add friends view to room creation

This commit is contained in:
N-Pex 2021-04-02 09:28:51 +02:00
parent bad4f2bc61
commit b246a134e2
5 changed files with 204 additions and 39 deletions

View file

@ -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