zulip/zulip-mobile

Ignore fake emails in user search and typeahead

Open

#4,889 opened on Jul 8, 2021

View on GitHub
 (1 comment) (0 reactions) (0 assignees)JavaScript (673 forks)github user discovery
P1 high-prioritybughelp wanted

Repository metrics

Stars
 (1,348 stars)
PR merge metrics
 (PR metrics pending)

Description

In organizations where emails are not public, we create fake "emails" with unique user IDs. At present, these emails are queried in user search and typeahead, which is certainly not what the user intends. Along with #4869, it makes user search feel "broken".

If email address visibility for an organization is something other than "everyone", we should ignore the email field in user search.

Contributor guide