mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	js: Convert _.reject(a, … => …) to a.filter(… => !…).
And convert the corresponding function expressions to arrow style while we’re here. Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							4948240619
						
					
				
				
					commit
					ef50346a29
				
			@@ -1233,9 +1233,9 @@ MessageListView.prototype = {
 | 
			
		||||
        // Convert messages to list messages
 | 
			
		||||
        let message_containers = messages.map(message => self.message_containers[message.id]);
 | 
			
		||||
        // We may not have the message_container if the stream or topic was muted
 | 
			
		||||
        message_containers = _.reject(message_containers, function (message_container) {
 | 
			
		||||
            return message_container === undefined;
 | 
			
		||||
        });
 | 
			
		||||
        message_containers = message_containers.filter(
 | 
			
		||||
            message_container => message_container !== undefined
 | 
			
		||||
        );
 | 
			
		||||
 | 
			
		||||
        const message_groups = [];
 | 
			
		||||
        let current_group = [];
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user