mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	home.py: move is_zephyr_mirror_realm as realm_is_zephyr_mirror_realm.
Part of #3853.
This commit is contained in:
		@@ -79,7 +79,7 @@ function message_matches_search_term(message, operator, operand) {
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        operand = operand.toLowerCase();
 | 
			
		||||
        if (page_params.is_zephyr_mirror_realm) {
 | 
			
		||||
        if (page_params.realm_is_zephyr_mirror_realm) {
 | 
			
		||||
            return zephyr_stream_name_match(message, operand);
 | 
			
		||||
        }
 | 
			
		||||
        return (message.stream.toLowerCase() === operand);
 | 
			
		||||
@@ -90,7 +90,7 @@ function message_matches_search_term(message, operator, operand) {
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        operand = operand.toLowerCase();
 | 
			
		||||
        if (page_params.is_zephyr_mirror_realm) {
 | 
			
		||||
        if (page_params.realm_is_zephyr_mirror_realm) {
 | 
			
		||||
            return zephyr_topic_name_match(message, operand);
 | 
			
		||||
        }
 | 
			
		||||
        return (message.subject.toLowerCase() === operand);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user