matrix-org / matrix-org/matrix-js-sdk
Sync store ends up with partial state
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.2k
- Forks
- 704
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 40
Description
It looks like somehow it's possible for the cached sync to end up in a state where it's very incomplete. In the case I have now (with Element Call), my test account is in tens of rooms but only three are in the sync object in indexeddb and those have only part of their state. Consequently, one of them is showing as 'Empty Room (was...)'. Unfortunately, I don't know how it got into this state.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names the sync object in IndexedDB and an Element Call test account, but no repository file, test, or reliable reproduction is provided. Start by inspecting the cached sync state in IndexedDB for the reported account; done means identifying how incomplete state can be stored or recovered and covering that failure with a regression test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- database
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100