unread: Fix confusing aliasing of variable names.

This commit is contained in:
Tim Abbott 2018-03-28 12:00:48 -07:00
parent e1eabe286a
commit 3d5b6539d1
1 changed files with 2 additions and 2 deletions

View File

@ -336,8 +336,8 @@ exports.get_unread_message_ids = function (message_ids) {
return _.filter(message_ids, unread_messages.has); return _.filter(message_ids, unread_messages.has);
}; };
exports.get_unread_messages = function (message) { exports.get_unread_messages = function (messages) {
return _.filter(message, function (message) { return _.filter(messages, function (message) {
return unread_messages.has(message.id); return unread_messages.has(message.id);
}); });
}; };