mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	Reset _all_items in MessageList.clear
(imported from commit 3e319578500480ebfe0da6c4541628a61f8b5ff9)
This commit is contained in:
		@@ -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);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user