mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 13:03:29 +00:00
people: Account for emails being split by " ,".
emails could be split by " ," and ",". So, trimming extra space is important.
This commit is contained in:
@@ -421,7 +421,7 @@ export function get_user_type(user_id: number): string | undefined {
|
||||
}
|
||||
|
||||
export function emails_strings_to_user_ids_string(emails_string: string): string | undefined {
|
||||
const emails = emails_string.split(",");
|
||||
const emails = emails_string.split(",").map((email) => email.trim());
|
||||
return email_list_to_user_ids_string(emails);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user