RustSpaceService.joinedSpaces() now points to the FFI method SpaceService.topLevelJoinedSpaces()

This commit is contained in:
Jorge Martín
2025-12-22 10:12:12 +01:00
committed by Jorge Martin Espinosa
parent cfa7d39966
commit 293d41f122

View File

@@ -51,7 +51,7 @@ class RustSpaceService(
override suspend fun joinedSpaces(): Result<List<SpaceRoom>> = withContext(sessionDispatcher) {
runCatchingExceptions {
innerSpaceService.joinedSpaces()
innerSpaceService.topLevelJoinedSpaces()
.map {
it.let(spaceRoomMapper::map)
}
@@ -97,7 +97,7 @@ internal fun SpaceServiceInterface.spaceListUpdate(): Flow<List<SpaceListUpdate>
}
}
Timber.d("Open spaceDiffFlow for SpaceServiceInterface ${this@spaceListUpdate}")
val taskHandle = subscribeToJoinedSpaces(listener)
val taskHandle = subscribeToTopLevelJoinedSpaces(listener)
awaitClose {
Timber.d("Close spaceDiffFlow for SpaceServiceInterface ${this@spaceListUpdate}")
taskHandle.cancelAndDestroy()