element-x-android
4f1fd33b - Fix unverified account after account creation (#5914)

Commit
9 days ago
Fix unverified account after account creation (#5914) * Fix unverified account after account creation: When we create an account either using OIDC or by importing a login and password one, we need to wait until the verification state is known (either verified or unverified). The problem is the verification service will return incorrect values until the E2EE tasks are initialized in the SDK, even if we add the state listeners after doing so. So what we can do is initialize the E2EE setup, discard any invalid verification state received while it's not initialized, and take only those received after it's initialized. * Actually restore the `Client` in `RustMatrixAuthenticationService.importCreatedSession` so we don't need to use `clear` and have the navigation restore the client later: This standarizes the way the login/registration flow works, always restoring/reusing the existing client instance
Author
Parents
Loading