From 2615916239be74f5946128f6616fc1e56db2253d Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 13 Apr 2022 17:04:22 +0200 Subject: [PATCH] Only switch to the participant tab when the token changes not any other detail Signed-off-by: Joas Schilling --- src/components/RightSidebar/RightSidebar.vue | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/components/RightSidebar/RightSidebar.vue b/src/components/RightSidebar/RightSidebar.vue index 9d218b271f9..f53ee577c15 100644 --- a/src/components/RightSidebar/RightSidebar.vue +++ b/src/components/RightSidebar/RightSidebar.vue @@ -228,15 +228,17 @@ export default { }, watch: { - conversation() { + conversation(newConversation, oldConversation) { if (!this.isRenamingConversation) { this.conversationName = this.conversation.displayName } - if (this.isOneToOne) { - this.activeTab = 'shared-items' - } else { - this.activeTab = 'participants' + if (newConversation.token !== oldConversation.token) { + if (newConversation.type === CONVERSATION.TYPE.ONE_TO_ONE) { + this.activeTab = 'shared-items' + } else { + this.activeTab = 'participants' + } } },