diff options
author | Joas Schilling <coding@schilljs.com> | 2022-04-13 18:04:22 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2022-04-13 18:04:22 +0300 |
commit | 2615916239be74f5946128f6616fc1e56db2253d (patch) | |
tree | 974579da938202eae56fed74ba7f776e172478bc /src | |
parent | a7762280b815c2b51ffdded9dab101fa39939e7f (diff) |
Only switch to the participant tab when the token changes not any other detail
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/components/RightSidebar/RightSidebar.vue | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/components/RightSidebar/RightSidebar.vue b/src/components/RightSidebar/RightSidebar.vue index 9d218b271..f53ee577c 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' + } } }, |