element-x-android/features/signedout
Jorge Martin Espinosa 1de6797673
Remove `SessionData.needsVerification` as the source of truth for session verification status (#2748)
* Remove `SessionData.needsVerification` as the source of truth for session verification status.

- Use the Rust SDK `EncryptionService.verificationState()` instead, but always waiting for the first 'known' result (either verified or not, discarding 'unknown').
- Add a workaround in the super rare case when reading this value gets stuck somehow. We'll assume the user is not verified in that case.
- Make `DefaultFtueService.getNextStep` and dependent checks `suspend`.
- Make the `skip` button use a value in the session preferences instead.

* Log exception when the verification status can't be loaded

Co-authored-by: Benoit Marty <benoit@matrix.org>

* Fix review comments

---------

Co-authored-by: Benoit Marty <benoit@matrix.org>
2024-04-24 13:55:25 +00:00
..
api Fix moar ktlint issues 2024-01-11 10:02:10 +01:00
impl Remove `SessionData.needsVerification` as the source of truth for session verification status (#2748) 2024-04-24 13:55:25 +00:00