Reset _all_items in MessageList.clear

(imported from commit 3e319578500480ebfe0da6c4541628a61f8b5ff9)
This commit is contained in:
Steve Howell
2013-09-28 15:04:34 -04:00
parent 49232d9173
commit ea7fda59d3

View File

@@ -124,6 +124,10 @@ MessageList.prototype = {
clear: function MessageList_clear(opts) {
opts = _.extend({clear_selected_id: true}, opts);
if (this.muting_enabled) {
this._all_items = [];
}
this._items = [];
this._hash = {};
this.view.clear_rendering_state(true);