(fix) correctly refresh the mailboxes list when empty'ing the trash that contains subfolders

pull/100/head
Ludovic Marcotte 2015-08-18 10:10:37 -04:00
parent d1446f7dc1
commit 5034d6655a
1 changed files with 4 additions and 0 deletions

View File

@ -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);
});