mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	user_profile: Remove redundant call to popovers.hide_all.
`show_user_profile` is only triggered by clicks. Even `enter` keypress is triggers a click via `popover_items_handle_keyboard_with_overrides`.
This commit is contained in:
		@@ -27,7 +27,6 @@ import * as loading from "./loading";
 | 
			
		||||
import * as overlays from "./overlays";
 | 
			
		||||
import {page_params} from "./page_params";
 | 
			
		||||
import * as people from "./people";
 | 
			
		||||
import * as popovers from "./popovers";
 | 
			
		||||
import * as settings_config from "./settings_config";
 | 
			
		||||
import * as settings_data from "./settings_data";
 | 
			
		||||
import * as settings_profile_fields from "./settings_profile_fields";
 | 
			
		||||
@@ -317,8 +316,6 @@ function initialize_user_type_fields(user) {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
export function show_user_profile(user, default_tab_key = "profile-tab") {
 | 
			
		||||
    popovers.hide_all();
 | 
			
		||||
 | 
			
		||||
    const field_types = page_params.custom_profile_field_types;
 | 
			
		||||
    const profile_data = page_params.custom_profile_fields
 | 
			
		||||
        .map((f) => get_custom_profile_field_data(user, f, field_types))
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user