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:
Abhijeet Kaur 2017-06-04 05:53:49 +05:30 committed by Cory Lynch
parent 995a0f3cc0
commit 4bd8638193
1 changed files with 3 additions and 3 deletions

View File

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