Skip to content

Erase every store of a deleted account and keep a guest from deleting the stored one - #89

Merged
Ocnrb merged 3 commits into
mainfrom
fix/delete-account-stores
Oct 6, 2026
Merged

Ocnrb merged 3 commits into
mainfrom
fix/delete-account-stores

Conversation

@Ocnrb

@Ocnrb Ocnrb commented Oct 6, 2026

Copy link
Copy Markdown
Member
  • Deleting an account left its sent DMs, failed outbox, epoch keys, reactions, unread counts, invites, sync state, settings (Graph API key included), push registry and wallet tokens on disk; each store now clears its own keys, matched by exact prefix
  • disconnect() made the next account current without re-scoping storage, so it ran on the deleted account's keys until a cold start and its sync pull refilled them
  • A guest session leaves the stored account current in the wallet store, so Delete erased that account's key and Unlock Key showed it; both are now refused and disabled for a guest

Ocnrb and others added 3 commits October 6, 2026 13:23
- Deleting an account left its sent DMs, failed outbox, epoch keys, reactions, unread counts, invites, sync state, settings (Graph API key included), push registry and wallet tokens on disk
- Per-stream keys are matched by prefix only: another account's epoch key for a channel the deleted one owns contains its address too

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
- disconnect() made the next account current without re-scoping, so it ran on the deleted account's keys until a cold start, and its sync pull refilled them

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
- A guest leaves the last real account current in the wallet store, so Delete erased that account's key and Unlock Key showed it

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
@Ocnrb
Ocnrb merged commit fe68d97 into main Oct 6, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant