From 2eec7658f32fe7bc5914014b3246080b830c1379 Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Fri, 20 Sep 2019 16:37:51 -0400 Subject: [PATCH] (js) Fix mailboxes refresh Fixes #4787 --- UI/WebServerResources/js/Mailer/Account.service.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/UI/WebServerResources/js/Mailer/Account.service.js b/UI/WebServerResources/js/Mailer/Account.service.js index abbad4aab..2f3351dc7 100644 --- a/UI/WebServerResources/js/Mailer/Account.service.js +++ b/UI/WebServerResources/js/Mailer/Account.service.js @@ -133,12 +133,12 @@ * @returns a promise of the HTTP operation */ Account.prototype.$getMailboxes = function(options) { - var _this = this; + var _this = this, reload = (options && options.reload); - if (this.$mailboxes && !(options && options.reload)) { + if (this.$mailboxes && !reload) { return Account.$q.when(this.$mailboxes); } - else if (this.$futureMailboxesData) { + else if (!reload && this.$futureMailboxesData) { return this.$futureMailboxesData; } else {