Resolve "Allow creation of new direct chat using matrix id"

This commit is contained in:
N Pex 2022-12-12 16:10:53 +00:00
parent 21d0370d77
commit 590a6caab2
16 changed files with 251 additions and 180 deletions

View file

@ -65,6 +65,11 @@ const routes = [
name: 'Join',
component: Join
},
{
path: '/user/:userId?',
name: 'User',
component: Join
},
{
path: '/invite/:roomId?',
name: 'Invite',
@ -113,6 +118,11 @@ router.beforeEach((to, from, next) => {
//Invite to public room
authRequired = false;
}
} else if (to.name == 'User') {
if (to.params.userId) {
const roomId = util.sanitizeUserId(to.params.userId);
router.app.$matrix.setCurrentRoomId(roomId);
}
} else if (to.name == 'Invite') {
if (to.params.roomId) {
const roomId = util.sanitizeRoomId(to.params.roomId);