matrix-org / matrix-org/matrix-js-sdk

initialSync issue

Open
#3,428 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
2.2k
Forks
704
Avg merge
1d 20h
Merged PRs (30d)
40

Description

If i call initialSync without params, it brings 8 messages per room and paging does not work. If I use it with a large value (for example 1000), then the paging works fine but it takes a lot of time at startup. Can this be resolved?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the initialSync entry point and trace how its default message limit and paging are handled. Reproduce the issue with no parameters and with a large value such as 1000, then inspect the related sync and pagination tests if present. Done means paging works without requiring a large startup value or an excessively slow startup.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.