Instantiate the now suspending innerClient.spaceService() RustMatrixClient with runBlocking for now

This commit is contained in:
Jorge Martín
2025-12-22 10:11:31 +01:00
committed by Jorge Martin Espinosa
parent 75f8c4f594
commit cfa7d39966
2 changed files with 4 additions and 2 deletions

View File

@@ -151,7 +151,9 @@ class RustMatrixClient(
private val sessionDispatcher = dispatchers.io.limitedParallelism(64)
private val innerRoomListService = innerSyncService.roomListService()
private val innerSpaceService = innerClient.spaceService()
// TODO refactor this and `innerNotificationClient` to be behind a suspend function instead
private val innerSpaceService = runBlocking { innerClient.spaceService() }
override val roomMembershipObserver = RoomMembershipObserver()

View File

@@ -60,7 +60,7 @@ class FakeFfiClient(
override suspend fun cachedAvatarUrl(): String? = null
override suspend fun restoreSession(session: Session) = Unit
override fun syncService(): SyncServiceBuilder = FakeFfiSyncServiceBuilder()
override fun spaceService(): SpaceService = FakeFfiSpaceService()
override suspend fun spaceService(): SpaceService = FakeFfiSpaceService()
override fun roomDirectorySearch(): RoomDirectorySearch = FakeFfiRoomDirectorySearch()
override suspend fun setPusher(
identifiers: PusherIdentifiers,