mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 21:05:28 +00:00
Add tests for SpaceFiltersPresenter and SpaceFiltersView and fix quality
This commit is contained in:
+2
-2
@@ -44,8 +44,8 @@ sealed interface RoomListFilter {
|
||||
) : RoomListFilter
|
||||
|
||||
data class Identifiers(
|
||||
val values : List<RoomId>,
|
||||
): RoomListFilter
|
||||
val values: List<RoomId>,
|
||||
) : RoomListFilter
|
||||
|
||||
/**
|
||||
* A filter that matches rooms that are unread.
|
||||
|
||||
+3
-3
@@ -37,12 +37,12 @@ class FakeSpaceService(
|
||||
_topLevelSpacesFlow.emit(value)
|
||||
}
|
||||
|
||||
private val _spaceServiceFiltersFlow = MutableSharedFlow<List<SpaceServiceFilter>>()
|
||||
private val _spaceFiltersFlow = MutableSharedFlow<List<SpaceServiceFilter>>()
|
||||
override val spaceFiltersFlow: SharedFlow<List<SpaceServiceFilter>>
|
||||
get() = _spaceServiceFiltersFlow.asSharedFlow()
|
||||
get() = _spaceFiltersFlow.asSharedFlow()
|
||||
|
||||
suspend fun emitSpaceFilters(value: List<SpaceServiceFilter>) {
|
||||
_spaceServiceFiltersFlow.emit(value)
|
||||
_spaceFiltersFlow.emit(value)
|
||||
}
|
||||
|
||||
override suspend fun joinedParents(spaceId: RoomId): Result<List<SpaceRoom>> {
|
||||
|
||||
Reference in New Issue
Block a user