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

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2022-05-16 19:03:33 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2022-05-16 19:03:33 +0300
commit42fd8893076bd96cb09bd95793fa712407a53110 (patch)
treee1a9a28357323554b959ed5301cfb3052a329748 /src
parentc8148e64d320f2d16b00c5ccde6133f3164892cb (diff)
Do not override existing aliases
We have to initialize the list of aliases as empty array for new accounts, but for existing ones we want to respect the given value. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'src')
-rw-r--r--src/store/mutations.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/store/mutations.js b/src/store/mutations.js
index c6fec5724..17cbe5ef2 100644
--- a/src/store/mutations.js
+++ b/src/store/mutations.js
@@ -122,7 +122,7 @@ export default {
// Save the mailboxes to the store, but only keep IDs in the account's mailboxes list
const mailboxes = sortMailboxes(account.mailboxes || [])
Vue.set(account, 'mailboxes', [])
- Vue.set(account, 'aliases', [])
+ Vue.set(account, 'aliases', account.aliases ?? [])
mailboxes.map(addMailboxToState(state, account))
},
editAccount(state, account) {