mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-04 01:19:33 +00:00
RustSpaceService.joinedSpaces() now points to the FFI method SpaceService.topLevelJoinedSpaces()
This commit is contained in:
committed by
Jorge Martin Espinosa
parent
0440f760ed
commit
dbf32a1bfe
+2
-2
@@ -51,7 +51,7 @@ class RustSpaceService(
|
|||||||
|
|
||||||
override suspend fun joinedSpaces(): Result<List<SpaceRoom>> = withContext(sessionDispatcher) {
|
override suspend fun joinedSpaces(): Result<List<SpaceRoom>> = withContext(sessionDispatcher) {
|
||||||
runCatchingExceptions {
|
runCatchingExceptions {
|
||||||
innerSpaceService.joinedSpaces()
|
innerSpaceService.topLevelJoinedSpaces()
|
||||||
.map {
|
.map {
|
||||||
it.let(spaceRoomMapper::map)
|
it.let(spaceRoomMapper::map)
|
||||||
}
|
}
|
||||||
@@ -97,7 +97,7 @@ internal fun SpaceServiceInterface.spaceListUpdate(): Flow<List<SpaceListUpdate>
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
Timber.d("Open spaceDiffFlow for SpaceServiceInterface ${this@spaceListUpdate}")
|
Timber.d("Open spaceDiffFlow for SpaceServiceInterface ${this@spaceListUpdate}")
|
||||||
val taskHandle = subscribeToJoinedSpaces(listener)
|
val taskHandle = subscribeToTopLevelJoinedSpaces(listener)
|
||||||
awaitClose {
|
awaitClose {
|
||||||
Timber.d("Close spaceDiffFlow for SpaceServiceInterface ${this@spaceListUpdate}")
|
Timber.d("Close spaceDiffFlow for SpaceServiceInterface ${this@spaceListUpdate}")
|
||||||
taskHandle.cancelAndDestroy()
|
taskHandle.cancelAndDestroy()
|
||||||
|
|||||||
Reference in New Issue
Block a user