Spaces : some cleanup on SpaceService

This commit is contained in:
ganfra 2026-01-30 16:56:29 +01:00
parent e718ce2c77
commit bc9a46a821
4 changed files with 9 additions and 24 deletions

View file

@ -12,9 +12,7 @@ import io.element.android.libraries.matrix.api.core.RoomId
import kotlinx.coroutines.flow.SharedFlow
interface SpaceService {
val spaceRoomsFlow: SharedFlow<List<SpaceRoom>>
suspend fun joinedSpaces(): Result<List<SpaceRoom>>
val topLevelSpacesFlow: SharedFlow<List<SpaceRoom>>
suspend fun joinedParents(spaceId: RoomId): Result<List<SpaceRoom>>
suspend fun getSpaceRoom(spaceId: RoomId): SpaceRoom?