mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 04:23:46 +00:00
unread: Fix {get_msg_ids,num_unread}_for_person type confusion.
These methods take a comma-separated string of user IDs; don’t pass a number. Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
committed by
Tim Abbott
parent
6aacc4195e
commit
fd9557aa0c
@@ -140,7 +140,7 @@ function get_num_unread(user_id) {
|
||||
if (unread.suppress_unread_counts) {
|
||||
return 0;
|
||||
}
|
||||
return unread.num_unread_for_person(user_id);
|
||||
return unread.num_unread_for_person(user_id.toString());
|
||||
}
|
||||
|
||||
exports.my_user_status = function (user_id) {
|
||||
|
||||
Reference in New Issue
Block a user