Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

people: Account for emails being split by " ,".

Aman Agrawal89212ae6802c
diff --git a/web/src/people.ts b/web/src/people.ts
index 465718624f0..6045ae8762e 100644
--- a/web/src/people.ts
+++ b/web/src/people.ts
@@ -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);
}