Add a joined only option to the room list search filter

The search filter now takes a joinedOnly flag, which appends the SDK's
joined filter so that invited and knocked rooms are excluded. It defaults
to false, leaving the existing callers unchanged.
This commit is contained in:
Stefan Ceriu
2026-09-10 17:22:53 +03:00
parent 942535e4fa
commit af202f3466
3 changed files with 10 additions and 10 deletions
@@ -36,8 +36,8 @@ enum RoomSummaryProviderState {
enum RoomSummaryProviderFilter: Equatable {
/// Filters out everything
case excludeAll
/// Includes only the items that satisfy the predicate logic
case search(query: String)
/// Includes only the items that satisfy the predicate logic, optionally restricted to joined rooms
case search(query: String, joinedOnly: Bool = false)
/// Includes only what satisfies the filters used
case all(filters: Set<RoomListFilter>)
/// Include only rooms from the given that satisfy the given filters