From 3c3e8f8f6f7806e60f3ce5c0ce720c71be2bf1d6 Mon Sep 17 00:00:00 2001 From: Jorge Martin Espinosa Date: Mon, 21 Sep 2026 14:34:34 +0200 Subject: [PATCH] Start sync manually after completing the auth flow (#7734) Do it before we wait for the known verification state so we can receive updates from the encryption sliding sync flow. --- .../matrix/impl/auth/RustMatrixAuthenticationService.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/matrix/impl/src/main/kotlin/io/element/android/libraries/matrix/impl/auth/RustMatrixAuthenticationService.kt b/libraries/matrix/impl/src/main/kotlin/io/element/android/libraries/matrix/impl/auth/RustMatrixAuthenticationService.kt index 681aa6ba64..1ae2a16d38 100644 --- a/libraries/matrix/impl/src/main/kotlin/io/element/android/libraries/matrix/impl/auth/RustMatrixAuthenticationService.kt +++ b/libraries/matrix/impl/src/main/kotlin/io/element/android/libraries/matrix/impl/auth/RustMatrixAuthenticationService.kt @@ -381,6 +381,9 @@ class RustMatrixAuthenticationService( // Apply enterprise hooks to the newly created client as soon as possible clientEnterpriseHook(matrixClient) + // Start the sync service to ensure that the client receives the encryption updates we'll wait for next. + matrixClient.syncService.startSync() + matrixClient.waitForKnownVerificationState() newMatrixClientObservers.forEach { it.invoke(matrixClient) }