Fix unread counts for Group PMs.

The variable name "name" was completely wrong, and I guess
this never generated a traceback or lint error.
This commit is contained in:
Steve Howell 2017-05-24 09:13:01 -07:00
parent a9f6f5f0c0
commit d5d6d47287
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ function get_user_list_item(user_id) {
}
function get_filter_li(user_ids_string) {
if (name.indexOf(",") < 0) {
if (user_ids_string.indexOf(",") < 0) {
return get_user_list_item(user_ids_string);
}
return $("li.group-pms-sidebar-entry[data-user-ids='" + user_ids_string + "']");