mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	people.js: Rename realm_get -> get_active_user_for_email.
We rename this function to be more clear, and we also remove a stray function name for `realm_get` that was for the wrong exported function.
This commit is contained in:
		@@ -537,7 +537,7 @@ exports.is_valid_email_for_compose = function (email) {
 | 
			
		||||
    return active_user_dict.has(person.user_id);
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
exports.realm_get = function realm_get(email) {
 | 
			
		||||
exports.get_active_user_for_email = function (email) {
 | 
			
		||||
    var person = people.get_by_email(email);
 | 
			
		||||
    if (!person) {
 | 
			
		||||
        return undefined;
 | 
			
		||||
@@ -667,7 +667,7 @@ exports.filter_people_by_search_terms = function (users, search_terms) {
 | 
			
		||||
        return filtered_users;
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
exports.get_by_name = function realm_get(name) {
 | 
			
		||||
exports.get_by_name = function (name) {
 | 
			
		||||
    return people_by_name_dict.get(name);
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user