Skip to content

Commit

Permalink
(fix) correctly refresh the mailboxes list when empty'ing the trash t…
Browse files Browse the repository at this point in the history
…hat contains subfolders
  • Loading branch information
extrafu committed Aug 18, 2015
1 parent d1446f7 commit 5034d66
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions UI/WebServerResources/js/Mailer/Mailbox.service.js
Expand Up @@ -424,6 +424,10 @@
_this.$messages = [];
_this.uidsMap = {};
_this.unseenCount = 0;

// If we had any submailboxes, lets do a refresh of the mailboxes list
if (angular.isDefined(_this.children) && _this.children.length)
_this.$account.$getMailboxes({reload: true});
}, function(data, status) {
deferred.reject(data);
});
Expand Down

0 comments on commit 5034d66

Please sign in to comment.