-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HIGH: Prevent DMs from appearing as "Hidden" #32613
Comments
@quinthar I laid out the current problems above. So far what we have done:
Potentially changes still in discussion:
|
Did some query timing on the existing queries here. They are not fast in the worst scenarios, but I think they are fine for us to go forward with the planned solution and see if we have any problems before optimizing further. |
I’m planning to break this into 4-5 PRs:
I’ve started a PR for 1: https://github.com/Expensify/Auth/pull/9414 |
I think this is a good update, but I think this should actually be handled in #vip-split, as #vip-vsb doesn't really deal with DMs. |
Web PR is ready, just an unrelated failing test: https://github.com/Expensify/Web-Expensify/pull/40276 |
This is done. To summarize what we did:
That's all for now. We'll see how it goes. In the future, we can potentially look into "prefetching" other personal details that we think might be important to make available to you locally. |
This comment was marked as resolved.
This comment was marked as resolved.
This is done. |
Background:
Sequence of events:
a. this means if you go directly to their profile, for example, by clicking on their avatar from a post in a public room, you don’t get their login info
a. this is because accountIDs are sequential and we didn’t want to make it possible to get a ton of email addresses by looping through new.expensify.com/a/1
b. at this point, all the other flows (e.g. OpenReport, sign in) would still return the email address as the display name
a. This is because OpenReport would still return the email address as the display name if a display name wasn’t set
b. So we made it so that we never return the display name if we aren’t confident that you know the user
Current state:
This leaves us with two kind of weird “bugs” right now:
This is because the “known user” check is slow, so we don’t do it for all your DMs on sign-in
This is because we are no longer returning the email address as the display name for unknown users. And by our current definition, you don’t know this user until they message you back.
Slack convo: https://expensify.slack.com/archives/C066HJM2CAZ/p1701193182994409
The text was updated successfully, but these errors were encountered: