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

Timelinesupport is not inherited from client

Open
#4,880 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

O-Uncommon S-Minor T-Defect
Dominant language
TypeScript
Stars
2.2k
Forks
704
Avg merge
1d 20h
Merged PRs (30d)
40

Description

It might just be the wording of the errormessage, but when you create an eventTimelineSet by hand, you have to set timelineSupport specifically in the options when creating, and not as the error message below would suggest, in the MatrixClient you supply to the function.

https://github.com/matrix-org/matrix-js-sdk/blob/f9be1bf57a1182dcdfa3a7dabf0b685284ae0b47/src/models/event-timeline-set.ts#L358-L364

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 src/models/event-timeline-set.ts lines 358-364 and compare the error wording with how an eventTimelineSet created by hand receives timelineSupport versus the MatrixClient supplied to it. Confirm whether the behavior or only the message is wrong, then update the relevant behavior or wording and verify the resulting error or inheritance.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.