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
Improve SyncBackup
implementation
#5022
Comments
Though from code perspective it's refactoring, but it's good to keep in mind that it should greatly improve UX of restoring account. We won't need the 30 seconds delay anymore. |
Does it mean we can now remove the 30s delay in master? Asking mainly in context of status-im/status-desktop#11163 |
Or, can I close status-im/status-desktop#11163 in favor of this one? |
Yes, I think so 🙂 But technically we'll still need to remove the UI delay, is's done on QML side now. So maybe keeping a separate issue for that still makes sense? |
OK, I'll set it as postponed/blocked for after this issue gets solved first. Thx! |
Here's how we currently fetch the backup from store nodes:
status-go/protocol/messenger_mailserver.go
Lines 258 to 274 in 3f19972
We request a full month of messages for the
contact-discovery-<public-key>
content topic.But we could be smarter here:
T
timestamp != T
I implemented this approach in
FetchCommuntiy
, as we don't really need full month there, but only the last community description. The code now allows to proceed envelopes by page and stop the request when needed.This will fix the issue you're referencing to. And also improve the fetching logic in general, we will not need to fetch and process redundant messages.
Originally posted by @igor-sirotin in status-im/status-desktop#14139 (comment)
The text was updated successfully, but these errors were encountered: