mirror of
				https://github.com/zulip/zulip.git
				synced 2025-10-31 12:03:46 +00:00 
			
		
		
		
	js: Convert _.find(a, …) to a.find(…).
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
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							cdd774b790
						
					
				
				
					commit
					336a279005
				
			| @@ -1156,12 +1156,12 @@ MessageListView.prototype = { | ||||
|         // groups are merged etc.) , but we only call this from flows | ||||
|         // like message editing, so it's not a big performance | ||||
|         // problem. | ||||
|         return _.find(this._message_groups, function (message_group) { | ||||
|         return this._message_groups.find( | ||||
|             // Since we don't have a way to get a message group from | ||||
|             // the containing message container, we just do a search | ||||
|             // to find it. | ||||
|             return message_group.message_group_id === message_group_id; | ||||
|         }); | ||||
|             message_group => message_group.message_group_id === message_group_id | ||||
|         ); | ||||
|     }, | ||||
|  | ||||
|     _rerender_header: function (message_containers) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user