-
Notifications
You must be signed in to change notification settings - Fork 14
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
Nos stays subscribed to old relays on login #1369
Comments
I'm looking into this, but I have some questions:
|
In this state Nos won't request the logged in user's contact list from relay C to get the latest list until the app is relaunched or maybe in some other scenarios like if they opened their own profile page. If they follow someone or mutate their relay list in this app session they will overwrite the newer one that is on relay C. So I guess it's less about staying subscribed or connected to Maybe it's enough to just watch the user's relay list with a fetched results controller and call Another option we've talked through in the past is keeping the user in the onboarding screens until we find their relay list. That's probably the Right Way™ and this ticket is more of a stopgap, so it's ok to compromise here I think. |
Describe the bug
When we log in a new user we look on relays for their contact list which includes their list of preferred relays. Simultaneously we open an "imporant events" subscription for things like the user's mute list, reports, delete requests, etc. Because we open this subscription before we have have downloaded the user's contact list it will use our list of
allKnown
relays rather than the user's preferred list. In rare cases this could lead to overwriting the user's contact or mute list in some scenarios.The text was updated successfully, but these errors were encountered: