subject -> topic: Sweep "message.subject" in frontend.

These were the last remaining files.  After this, only
util.js has a non-email-related use of "subject".
This commit is contained in:
Steve Howell
2018-12-23 15:01:30 +00:00
committed by Tim Abbott
parent 7e17b8a392
commit 1ad30c6858
12 changed files with 27 additions and 21 deletions

View File

@@ -31,7 +31,7 @@ function zephyr_topic_name_match(message, operand) {
related_regexp = new RegExp(/^/.source + util.escape_regexp(base_topic) + /(\.d)*$/.source, 'i');
}
return related_regexp.test(message.subject);
return related_regexp.test(util.get_message_topic(message));
}
function message_in_home(message) {
@@ -106,7 +106,7 @@ function message_matches_search_term(message, operator, operand) {
if (page_params.realm_is_zephyr_mirror_realm) {
return zephyr_topic_name_match(message, operand);
}
return message.subject.toLowerCase() === operand;
return util.get_message_topic(message).toLowerCase() === operand;
case 'sender':