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

Paginate getRooms()

Open
#752 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

If a user has many open rooms (expected 100+) i want to retrieve only 10-15 at a time sorted by last event time. Room events have pagination but getting rooms do not seem to have the same feature.

Please help advise a solution.
Regards,
Joel

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 getRooms() entry point and compare its current room retrieval behavior with the existing room-event pagination mentioned in the issue. Define how page size, ordering by last event time, and continuation are exposed; done when callers can retrieve 10–15 rooms per page for large room lists. No file or test is identified, so repository exploration is required.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.