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.
This commit is contained in:
Jorge Martin Espinosa
2026-09-21 14:34:34 +02:00
committed by GitHub
parent c4529b87b4
commit 3c3e8f8f6f
@@ -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) }