status-im / status-mobile

a free (libre) open source, mobile OS for Ethereum
https://status.app
Mozilla Public License 2.0
3.86k stars 983 forks source link

User receives contact request from blocked contact after account restoring #17359

Open qoqobolo opened 10 months ago

qoqobolo commented 10 months ago

Bug Report

Problem

Reproduction

UserA:

  1. Create an account
  2. Add UserB to contacts
  3. Block UserB
  4. Perform backup (settings > sync settings > backup settings > perform backup)
  5. Save seed phrase
  6. Reinstall the app and restore the account using the seed phrase
  7. Open activity center

Expected behavior

No CR from UserB

Actual behavior

CR from blocked UserB is in AC; if you accept it, UserB will be displayed in blocked contacts

Screenshot 2023-09-20 at 16 08 04

Additional Information

Logs

UserA geth.log Status.log

UserB geth.log Status.log

yevh-berdnyk commented 7 months ago

Contact requests also appear after restoring an account if a contact was deleted