mirror of https://github.com/zulip/zulip.git
unread: Fix confusing aliasing of variable names.
This commit is contained in:
parent
e1eabe286a
commit
3d5b6539d1
|
@ -336,8 +336,8 @@ exports.get_unread_message_ids = function (message_ids) {
|
|||
return _.filter(message_ids, unread_messages.has);
|
||||
};
|
||||
|
||||
exports.get_unread_messages = function (message) {
|
||||
return _.filter(message, function (message) {
|
||||
exports.get_unread_messages = function (messages) {
|
||||
return _.filter(messages, function (message) {
|
||||
return unread_messages.has(message.id);
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue