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:
Anders Kaseorg
2020-01-31 17:47:48 -08:00
committed by Tim Abbott
parent 6aacc4195e
commit fd9557aa0c
2 changed files with 11 additions and 11 deletions

View File

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