home.py: move is_zephyr_mirror_realm as realm_is_zephyr_mirror_realm.

Part of #3853.
This commit is contained in:
fionabunny
2017-04-19 23:03:44 -07:00
committed by Tim Abbott
parent 935ddf3b17
commit 70fe2eab60
9 changed files with 11 additions and 10 deletions

View File

@@ -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);