(fix) moved the mailbox cleanup after expunge in the service

This commit is contained in:
Ludovic Marcotte committed 2015-08-11 14:48:45 -04:00
1 parent 2e3057c2ce
commit 9362513fee
2 files changed
+17 -5

No files matched your search

@@ -138,10 +138,7 @@
function emptyTrashFolder(folder) {
folder.$emptyTrash().then(function() {
// Success - remove all messages from the mailbox
folder.$messages = [];
folder.uidsMap = {};
folder.unseenCount = 0;
// Success
}, function(error) {
Dialog.alert(l('Warning'), error);
});