From 76f055afc05e44cf09f78d23950c788f046aaed9 Mon Sep 17 00:00:00 2001 From: ganfra Date: Wed, 28 Jun 2023 16:49:08 +0200 Subject: [PATCH] RoomListService: enable encryption --- .../element/android/libraries/matrix/impl/RustMatrixClient.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/matrix/impl/src/main/kotlin/io/element/android/libraries/matrix/impl/RustMatrixClient.kt b/libraries/matrix/impl/src/main/kotlin/io/element/android/libraries/matrix/impl/RustMatrixClient.kt index 8aa2c424a7..060f8fc0a9 100644 --- a/libraries/matrix/impl/src/main/kotlin/io/element/android/libraries/matrix/impl/RustMatrixClient.kt +++ b/libraries/matrix/impl/src/main/kotlin/io/element/android/libraries/matrix/impl/RustMatrixClient.kt @@ -81,8 +81,7 @@ class RustMatrixClient constructor( ) : MatrixClient { override val sessionId: UserId = UserId(client.userId()) - - private val roomListService = client.roomListService() + private val roomListService = client.roomListServiceWithEncryption() private val sessionCoroutineScope = appCoroutineScope.childScope(dispatchers.main, "Session-${sessionId}") private val verificationService = RustSessionVerificationService() private val syncService = RustSyncService(roomListService, sessionCoroutineScope) @@ -92,6 +91,7 @@ class RustMatrixClient constructor( ) private val notificationService = RustNotificationService(client) + private val clientDelegate = object : ClientDelegate { override fun didReceiveAuthError(isSoftLogout: Boolean) { //TODO handle this