Spaces : some cleanup on SpaceService

This commit is contained in:
ganfra
2026-01-30 16:56:29 +01:00
parent 8ed69c03d2
commit 2132b65bf6
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?