filter: Use ', ' to separate names in PM title.

This is a prep commit for the navbar redesign.
This commit is contained in:
YashRE42
2020-04-10 01:23:29 +05:30
committed by Tim Abbott
parent 497383cc12
commit 5fdb8989e5
2 changed files with 13 additions and 4 deletions

View File

@@ -573,7 +573,11 @@ Filter.prototype = {
}
return people.get_by_email(email).full_name;
});
return names;
// We use join to handle the addition of a comma and space after every name
// and also to ensure that we return a string and not an array so that we
// can have the same return type as other cases.
return names.join(', ');
}
}
}