Instantiate the now suspending innerClient.spaceService() RustMatrixClient with runBlocking for now
This commit is contained in:
parent
75f8c4f594
commit
cfa7d39966
2 changed files with 4 additions and 2 deletions
|
|
@ -151,7 +151,9 @@ class RustMatrixClient(
|
||||||
private val sessionDispatcher = dispatchers.io.limitedParallelism(64)
|
private val sessionDispatcher = dispatchers.io.limitedParallelism(64)
|
||||||
|
|
||||||
private val innerRoomListService = innerSyncService.roomListService()
|
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()
|
override val roomMembershipObserver = RoomMembershipObserver()
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -60,7 +60,7 @@ class FakeFfiClient(
|
||||||
override suspend fun cachedAvatarUrl(): String? = null
|
override suspend fun cachedAvatarUrl(): String? = null
|
||||||
override suspend fun restoreSession(session: Session) = Unit
|
override suspend fun restoreSession(session: Session) = Unit
|
||||||
override fun syncService(): SyncServiceBuilder = FakeFfiSyncServiceBuilder()
|
override fun syncService(): SyncServiceBuilder = FakeFfiSyncServiceBuilder()
|
||||||
override fun spaceService(): SpaceService = FakeFfiSpaceService()
|
override suspend fun spaceService(): SpaceService = FakeFfiSpaceService()
|
||||||
override fun roomDirectorySearch(): RoomDirectorySearch = FakeFfiRoomDirectorySearch()
|
override fun roomDirectorySearch(): RoomDirectorySearch = FakeFfiRoomDirectorySearch()
|
||||||
override suspend fun setPusher(
|
override suspend fun setPusher(
|
||||||
identifiers: PusherIdentifiers,
|
identifiers: PusherIdentifiers,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue