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: Allow user to lookup users using user id.

Aman Agrawal6c355f65324a
diff --git a/web/src/people.ts b/web/src/people.ts
index 93cce78a92e..12cf485be18 100644
--- a/web/src/people.ts
+++ b/web/src/people.ts
@@ -1415,6 +1415,10 @@ export function build_person_matcher(query: string): (user: User) => boolean {
const termlet_matchers = termlets.map((termlet) => build_termlet_matcher(termlet));
return function (user: User): boolean {
+ if (String(user.user_id).startsWith(query)) {
+ return true;
+ }
+
const visible_email = get_visible_email(user).toLowerCase();
if (visible_email.startsWith(query)) {
return true;