Skip to content

Commit

Permalink
fix(mail(js)): reset messages list after emptying trash
Browse files Browse the repository at this point in the history
Fixes #5421
  • Loading branch information
cgx committed Nov 2, 2021
1 parent d6c3c4b commit 9622a1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion UI/WebServerResources/js/Mailer/Mailbox.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 9622a1e

Please sign in to comment.