From 4f21cda9cd5c01373868245df8c741f3e29fabe3 Mon Sep 17 00:00:00 2001 From: djmaze Date: Fri, 30 Oct 2020 16:42:01 +0100 Subject: [PATCH] Resolve https://github.com/the-djmaze/snappymail/issues/33 --- dev/Settings/User/Accounts.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/dev/Settings/User/Accounts.js b/dev/Settings/User/Accounts.js index 7fec7d8ec..c84148b8b 100644 --- a/dev/Settings/User/Accounts.js +++ b/dev/Settings/User/Accounts.js @@ -69,11 +69,8 @@ class AccountsUserSettings { this.identityForDeletion(null); if (identityToRemove) { - IdentityStore.identities.remove((oIdentity) => identityToRemove === oIdentity); - - Remote.identityDelete(() => { - rl.app.accountsAndIdentities(); - }, identityToRemove.id); + IdentityStore.identities.remove(oIdentity => identityToRemove === oIdentity); + Remote.identityDelete(() => rl.app.accountsAndIdentities(), identityToRemove.id()); } } }