matrix-org / matrix-org/matrix-js-sdk
Paginate getRooms()
Nobody has claimed this yet.
- 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
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
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