diff --git a/components/ui/Unread/Unread.vue b/components/ui/Unread/Unread.vue index 8c640001cd..840a274213 100644 --- a/components/ui/Unread/Unread.vue +++ b/components/ui/Unread/Unread.vue @@ -71,12 +71,18 @@ export default Vue.extend({ this.$store.dispatch('ui/showProfile', this.user) }, navigateToUser() { - if ( - this.$route.params.address === this.user.address && - this.$device.isMobile - ) { - this.$store.commit('ui/showSidebar', false) + if (this.$route.params.address === this.user.address) { + if (this.$device.isMobile) { + this.$store.commit('ui/showSidebar', false) + } + return } + this.$store.dispatch('conversation/setConversation', { + id: this.user.address, + type: 'friend', + participants: [this.user], + calling: false, + }) this.$router.push(`/chat/direct/${this.user.address}`) }, }, diff --git a/components/views/chat/chatbar/footer/is-connected/Connected.vue b/components/views/chat/chatbar/footer/is-connected/Connected.vue index 5272dfedf3..78e8f43229 100644 --- a/components/views/chat/chatbar/footer/is-connected/Connected.vue +++ b/components/views/chat/chatbar/footer/is-connected/Connected.vue @@ -18,7 +18,7 @@ export default Vue.extend({ }, }, computed: { - ...mapState(['ui', 'webrtc', 'friends', 'conversation']), + ...mapState(['friends', 'conversation']), onlineParticipants() { return this.conversation.participants .filter((participant) => participant.state === 'CONNECTED') @@ -50,13 +50,6 @@ export default Vue.extend({ )} ${this.$t('ui.offline')}` }, }, - watch: { - 'conversation.participants': { - handler() {}, - deep: true, - immediate: true, - }, - }, methods: { /** * @method friendConnected diff --git a/components/views/group/clickable/Clickable.html b/components/views/group/clickable/Clickable.html index 9aaed5731c..beacfa0461 100644 --- a/components/views/group/clickable/Clickable.html +++ b/components/views/group/clickable/Clickable.html @@ -1,5 +1,6 @@