-
Notifications
You must be signed in to change notification settings - Fork 987
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
Waku backup - deleted contact is restored when recovering an account from recovery phrase #18096
Comments
@jrainville, @osmaczko do you think this bug could be related to timing due to the asynchronous nature of backups? Do you have any context about how backups are scheduled and propagated? It seems from the reproduction steps that the order of backups is not respected (sometimes at least). |
My guess is that there's either a missing clock check or the newer message hasn't been processed. I'm not super familiar with how backups are implemented, so I'll defer to @saledjenic, who worked on that some time ago. |
Indeed, it's either a missing clock, or the second backup message doesn't get fetched for some reason, but it sounds like the is reproducible a lot, so it's probably more a clock issue. The other possibility is if we never implemented the contact removal flow for backups? I don't know by heart how contact backups work, but if when we get the backup of contacts, we don't actually reset the table, then maybe we just don't look for removals. We check for new contacts and add them, but we'd forget to check if there are removed ones. |
@ilmotta @osmaczko @jrainville could you check if this PR fixes the issue? |
Thank you @saledjenic. We will try to get the status-go PR tested this week 👍🏼 |
@saledjenic, sorry for the late notice, we will come back to this issue and test the status-go PR after the release 2.31 is done. As suggested here status-im/status-go#5925 (review) it would be valuable if the status-go PR had tests to demonstrate the fix works and to protect the code from future regressions. Thank you for working on this fix. |
I don't think that we have a capacity for it in 2.32, given the desired release cut date. |
Bug Report
Problem
Now I can reproduce this issue with only one account which is added as a contact. Probably that's because that account was created on the old version of Status desktop. However this issue is reproducible in each build
Expected behavior
Deleted contact is not restored
Actual behavior
Deleted contact is restored - userDesktop is listed in contacts tab
Reproduction
process fence december tourist trim follow pepper level useless oblige tank defy
, let's call them userDesktopAdditional Information
Logs
mobile_user_geth.log.zip
mobile_user_logcat.log.zip
The text was updated successfully, but these errors were encountered: