Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes the weird invite bug we've been seeing (digidem/comapeo-mobile#671):
video.mp4
When you join a project, you wait for some data to sync, such as the project config. That effectively happens in two steps:
Before this change, these two steps answered "is sync done?" in slightly different ways. After this change, they answer that in the same way.
Here's a diff in pseudocode:
More specifically, this makes both parts check "is sync done?" by looking at the
auth
andconfig
namespaces. If they want nothing but have something, we consider them done with initial sync.