Merge pull request #7146 from nextcloud/bugfix/noid/fix-changing-tab-when-conversation-details-change

Only switch to the participant tab when the token changes not any oth…
This commit is contained in:
Joas Schilling 2022-04-13 19:55:50 +02:00 коммит произвёл GitHub
Родитель ecab47b97b 2615916239
Коммит 6ff57ea87e
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 7 добавлений и 5 удалений

Просмотреть файл

@ -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'
}
}
},