Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sdk-ui: add PinnedEventsLoaderError::TimelineReloadFailed #3804

Merged
merged 1 commit into from
Aug 5, 2024

Conversation

jmartinesp
Copy link
Contributor

This error will be returned when the room has pinned event ids but the timeline couldn't load any of them.

We need to make this distinction instead of just failing as soon as the first request fails because we don't want an incorrect pinned event id to break loading any other existing events, or have a single failed request with poor connectivity to invalidate the rest of them.

Also fix and add new tests.

  • Public API changes documented in changelogs (optional)

Signed-off-by:

This error will be returned when the room has pinned event ids but the timeline couldn't load any of them.

Also fix tests.
@jmartinesp jmartinesp requested a review from a team as a code owner August 5, 2024 13:22
@jmartinesp jmartinesp requested review from poljar and removed request for a team August 5, 2024 13:22
Copy link
Member

@andybalaam andybalaam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

@andybalaam andybalaam removed the request for review from poljar August 5, 2024 14:54
@jmartinesp jmartinesp merged commit 91c10ae into main Aug 5, 2024
38 checks passed
@jmartinesp jmartinesp deleted the jme/feat/allow-pinned-message-timeline-to-fail branch August 5, 2024 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants