Instantiate the now suspending innerClient.spaceService() RustMatrixClient with runBlocking for now
This commit is contained in:
committed by
Jorge Martin Espinosa
parent
75f8c4f594
commit
cfa7d39966
@@ -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()
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user