Skip to content

Order and dispute state lost after closing the app #584

Description

@BraCR10

Describe the bug

After a full restore, force-killing the app and relaunching causes order and dispute states to be lost. Orders show incorrect status in My Trades. But a manual refresh recovers them correctly.

This does not happen to users who have never performed a restore.

To Reproduce

  1. Perform a full restore on an account with active orders or disputes
  2. Confirm orders appear correctly after restore completes
  3. Force-kill the app
  4. Relaunch
  5. Orders show wrong state or are missing from My Trades

Expected behavior

Orders and disputes should show the correct state after relaunch, same as before the app was killed.

Smartphone

  • OS: Android

Additional context

  • Only triggers after restore. Those users who have never performed a restore can kill and relaunch the app without problems.

  • Related code: restore_manager.dart, _clearAll(), eventStorage, mostroStorage

  • A manual refresh or restore recovers the correct state

  • Documented in docs/architecture/DISPUTE_CHAT_RESTORE.md

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions