mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-06 04:18:31 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user