mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	Remove 40-streams criterion for flagging dormant streams.
Before this change, we would move "dormant" streams to the bottom of your stream sidebar, but only if you had 40+ streams. Now we do this in all cases to be more consistent. This commit also changes the redraw strategy when we remove rows. Before this change, we were doing incremental updates, but now we call build_stream_list to do a complete rebuild. This was partly motivated by adding the new divider, which would have complicated the incrememental approach when you removed the last remaining dormant stream.
This commit is contained in:
		@@ -43,10 +43,8 @@ exports.sort_groups = function (search_term) {
 | 
			
		||||
 | 
			
		||||
    streams = filter_streams_by_search(streams, search_term);
 | 
			
		||||
 | 
			
		||||
    var sort_recent = (streams.length > 40);
 | 
			
		||||
 | 
			
		||||
    function is_normal(stream) {
 | 
			
		||||
        return !sort_recent || stream_data.is_active(stream);
 | 
			
		||||
        return stream_data.is_active(stream);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    var pinned_streams = [];
 | 
			
		||||
@@ -87,7 +85,6 @@ exports.sort_groups = function (search_term) {
 | 
			
		||||
        pinned_streams: pinned_streams,
 | 
			
		||||
        normal_streams: normal_streams,
 | 
			
		||||
        dormant_streams: dormant_streams,
 | 
			
		||||
        sort_recent: sort_recent,
 | 
			
		||||
    };
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user