Merge branch 'master' into dependabot/npm_and_yarn/backend/aws-sdk-2.1425.0

This commit is contained in:
mahula 2023-07-31 11:58:12 +02:00 committed by GitHub
commit 94ebf3694d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,6 +27,7 @@
@fetch-more-rooms="fetchRooms"
@add-room="toggleUserSearch"
@show-demo-options="showDemoOptions = $event"
@open-user-tag="redirectToUserProfile($event.detail[0])"
>
<div
v-if="selectedRoom && selectedRoom.roomId"
@ -447,6 +448,13 @@ export default {
// this.loading = false
})
},
redirectToUserProfile({ user }) {
const userID = user.id
const userName = user.name.toLowerCase().replaceAll(' ', '-')
const url = `/profile/${userID}/${userName}`
this.$router.push({ path: url })
},
},
}
</script>