mirror of https://github.com/zulip/zulip.git
js: Update variable name from message_ids to user_ids in 'filter.js' file.
Update variable name in static/js/filter.js from 'message_ids' to 'user_ids' for better understanding. As it is an array of user recipients of a particular message.
This commit is contained in:
parent
995a0f3cc0
commit
4bd8638193
|
@ -121,12 +121,12 @@ function message_matches_search_term(message, operator, operand) {
|
|||
if (!operand_ids) {
|
||||
return false;
|
||||
}
|
||||
var message_ids = people.pm_with_user_ids(message);
|
||||
if (!message_ids) {
|
||||
var user_ids = people.pm_with_user_ids(message);
|
||||
if (!user_ids) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return _.isEqual(operand_ids, message_ids);
|
||||
return _.isEqual(operand_ids, user_ids);
|
||||
}
|
||||
|
||||
return true; // unknown operators return true (effectively ignored)
|
||||
|
|
Loading…
Reference in New Issue