fix(mail(js)): reset messages list after emptying trash

Fixes #5421
This commit is contained in:
Francis Lachapelle
2021-11-02 08:52:48 -04:00
parent d6c3c4b1a3
commit 9622a1ea07

View File

@@ -669,7 +669,7 @@
return Mailbox.$$resource.post(this.id, 'emptyTrash').then(function(data) {
// Remove all messages from the mailbox
_this.$messages = [];
_this.$messages = _this.$visibleMessages = [];
_this.uidsMap = {};
_this.unseenCount = 0;