mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	Send dicts for cross realm users to JS.
We now send dictionaries for cross-realm bots. This led to the following changes: * Create get_cross_realm_dicts() in actions.py. * Rename the page_params field to cross_realm_bots. * Fix some back end tests. * Add cross_realm_dict to people.js. * Call people.add for cross-realm bots (if they are not already part of the realm). * Remove hack to add in feedback@zulip.com on the client side. * Add people.is_cross_realm_email() and use it in compose.js. * Remove util.string_in_list_case_insensitive().
This commit is contained in:
		@@ -846,7 +846,7 @@ function validate_private_message() {
 | 
			
		||||
            if (people.realm_get(email) !== undefined) {
 | 
			
		||||
                return;
 | 
			
		||||
            }
 | 
			
		||||
            if (util.string_in_list_case_insensitive(email, page_params.cross_realm_user_emails)) {
 | 
			
		||||
            if (people.is_cross_realm_email(email)) {
 | 
			
		||||
                return;
 | 
			
		||||
            }
 | 
			
		||||
            invalid_recipients.push(email);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user