Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2022-04-13 18:04:22 +0300
committerJoas Schilling <coding@schilljs.com>2022-04-13 18:04:22 +0300
commit2615916239be74f5946128f6616fc1e56db2253d (patch)
tree974579da938202eae56fed74ba7f776e172478bc
parenta7762280b815c2b51ffdded9dab101fa39939e7f (diff)
Only switch to the participant tab when the token changes not any other detail
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r--src/components/RightSidebar/RightSidebar.vue12
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'
+ }
}
},