mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-10-31 16:22:49 +00:00
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:
committed by
GitHub
parent
c4529b87b4
commit
3c3e8f8f6f
+3
@@ -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) }
|
||||
|
||||
Reference in New Issue
Block a user