mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	settings: Fix last_active sorting in user settings.
We were incorrectly accessing .id, not .user_id, on the people objects. Fixes #15165.
This commit is contained in:
		@@ -58,8 +58,8 @@ function sort_bot_owner(a, b) {
 | 
			
		||||
 | 
			
		||||
function sort_last_active(a, b) {
 | 
			
		||||
    return compare_a_b(
 | 
			
		||||
        presence.last_active_date(a.id) || 0,
 | 
			
		||||
        presence.last_active_date(b.id) || 0
 | 
			
		||||
        presence.last_active_date(a.user_id) || 0,
 | 
			
		||||
        presence.last_active_date(b.user_id) || 0
 | 
			
		||||
    );
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user