From 36c2c6c62f95ddda9321153cf6e49d608b2a979a Mon Sep 17 00:00:00 2001 From: Maksim Sukharev Date: Mon, 12 Jun 2023 09:53:36 +0200 Subject: [PATCH] don't wait for server response to close the sidebar Signed-off-by: Maksim Sukharev --- src/components/LeftSidebar/LeftSidebar.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/LeftSidebar/LeftSidebar.vue b/src/components/LeftSidebar/LeftSidebar.vue index 3cd5219387c..3a8d21fc520 100644 --- a/src/components/LeftSidebar/LeftSidebar.vue +++ b/src/components/LeftSidebar/LeftSidebar.vue @@ -578,11 +578,6 @@ export default { if (to.name === 'conversation') { this.$store.dispatch('joinConversation', { token: to.params.token }) } - }, - - handleJoinedConversation({ token }) { - this.abortSearch() - this.scrollToConversation(token) if (this.isMobile) { emit('toggle-navigation', { open: false, @@ -590,6 +585,11 @@ export default { } }, + handleJoinedConversation({ token }) { + this.abortSearch() + this.scrollToConversation(token) + }, + iconData(item) { if (item.source === 'users') { return {