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 a8ffe46d99
commit 0440f760ed
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()