mirror of
https://github.com/zulip/zulip.git
synced 2026-07-03 21:10:12 +08:00
Reset _all_items in MessageList.clear
(imported from commit 3e319578500480ebfe0da6c4541628a61f8b5ff9)
This commit is contained in:
parent
49232d9173
commit
ea7fda59d3
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user