Skip to content

feat(ui): introduce a new ThreadListService#6311

Open
stefanceriu wants to merge 4 commits intomainfrom
stefan/threadListService
Open

feat(ui): introduce a new ThreadListService#6311
stefanceriu wants to merge 4 commits intomainfrom
stefan/threadListService

Conversation

@stefanceriu
Copy link
Member

@stefanceriu stefanceriu commented Mar 18, 2026

ThreadListService is the FFI-facing wrapper around [matrix_sdk_ui::timeline::thread_list_service::ThreadListService].
It maintains an observable list of [ThreadListItem]s and exposes a pagination state publisher, making it straightforward to build reactive UIs on top of the thread list.

This PR also removes the existing Room:load_thread_list method in favor of this new service.

Part of #6290

`ThreadListService` is the FFI-facing wrapper around
[`matrix_sdk_ui::timeline::thread_list_service::ThreadListService`]. It
maintains an observable list of [`ThreadListItem`]s and exposes a
pagination state publisher, making it straightforward to build reactive UIs
on top of the thread list.
@codecov
Copy link

codecov bot commented Mar 18, 2026

Codecov Report

❌ Patch coverage is 89.55823% with 26 lines in your changes missing coverage. Please review.
✅ Project coverage is 89.88%. Comparing base (4ad046d) to head (0f2007b).
⚠️ Report is 1 commits behind head on main.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
.../matrix-sdk-ui/src/timeline/thread_list_service.rs 90.28% 23 Missing and 1 partial ⚠️
crates/matrix-sdk-ui/src/timeline/traits.rs 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6311      +/-   ##
==========================================
+ Coverage   89.81%   89.88%   +0.06%     
==========================================
  Files         376      376              
  Lines      102461   102646     +185     
  Branches   102461   102646     +185     
==========================================
+ Hits        92026    92261     +235     
+ Misses       6855     6809      -46     
+ Partials     3580     3576       -4     

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

@codspeed-hq
Copy link

codspeed-hq bot commented Mar 18, 2026

Merging this PR will not alter performance

✅ 50 untouched benchmarks


Comparing stefan/threadListService (0f2007b) with main (daa1120)

Open in CodSpeed

@stefanceriu stefanceriu requested a review from Hywan March 18, 2026 11:59
@stefanceriu stefanceriu marked this pull request as ready for review March 18, 2026 12:00
@stefanceriu stefanceriu requested a review from a team as a code owner March 18, 2026 12:00
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.

1 participant