Ensure that we can "not filter" the rooms.
This commit is contained in:
committed by
Benoit Marty
parent
da500fdcb2
commit
ff697f68fc
@@ -20,6 +20,7 @@ sealed interface RoomListFilter {
|
||||
companion object {
|
||||
/**
|
||||
* Create a filter that matches all the given filters.
|
||||
* If not filters are provided, all the room will match.
|
||||
*/
|
||||
fun all(vararg filters: RoomListFilter): RoomListFilter {
|
||||
return All(filters.toList())
|
||||
@@ -35,6 +36,7 @@ sealed interface RoomListFilter {
|
||||
|
||||
/**
|
||||
* A filter that matches all the given filters.
|
||||
* If [filters] is empty, all the room will match.
|
||||
*/
|
||||
data class All(
|
||||
val filters: List<RoomListFilter>
|
||||
|
||||
Reference in New Issue
Block a user