mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-02-28 04:36:24 +00:00
(fix) properly cleanup the Trash folder after empty'ing
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user