(fix) properly cleanup the Trash folder after empty'ing

This commit is contained in:
Ludovic Marcotte
2015-08-10 23:48:59 -04:00
parent d28fccf71e
commit 314dcfd30e

View File

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