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 fn Room::event_with_config #3809

Merged

Conversation

jmartinesp
Copy link
Contributor

This method works the same as Room::event but you can provide a custom RequestConfig to it.

It's especially useful for the pinned events timeline, since we need a max number of retries and a max number of concurrent requests. With this we can remove some unnecessary complexity.

Related but not depending on #3807.

  • Public API changes documented in changelogs (optional)

Signed-off-by:

@jmartinesp jmartinesp requested a review from a team as a code owner August 6, 2024 15:13
@jmartinesp jmartinesp requested review from poljar and removed request for a team August 6, 2024 15:13
Copy link

codecov bot commented Aug 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.08%. Comparing base (c3848ca) to head (4dc071e).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3809   +/-   ##
=======================================
  Coverage   84.08%   84.08%           
=======================================
  Files         263      263           
  Lines       27475    27471    -4     
=======================================
- Hits        23102    23100    -2     
+ Misses       4373     4371    -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

This method works the same as `Room::event` but you can provide a custom `RequestConfig` to it.

It's especially useful for the pinned events timeline, since we need a max number of retries and a max number of concurrent requests. With this we can remove some unnecessary complexity.
@jmartinesp jmartinesp force-pushed the fix/jme/use-request-config-for-loading-pinned-events branch from fee6b06 to 4dc071e Compare August 7, 2024 06:35
@jmartinesp jmartinesp requested review from a team and stefanceriu and removed request for poljar and a team August 7, 2024 09:19
Copy link
Member

@stefanceriu stefanceriu left a comment

Choose a reason for hiding this comment

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

Very nice, lgtm 👍

@jmartinesp jmartinesp merged commit 7d9fdc4 into main Aug 7, 2024
40 checks passed
@jmartinesp jmartinesp deleted the fix/jme/use-request-config-for-loading-pinned-events branch August 7, 2024 09:48
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