element-x-ada/libraries/session-storage/impl/src/main/sqldelight/databases
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
..
1.db Add DB versions to test all migrations 2023-10-12 14:53:14 +02:00
2.db Add DB versions to test all migrations 2023-10-12 14:53:14 +02:00
3.db Generate database with model version 3, to unit test database migration. 2023-10-10 10:20:31 +02:00
4.db Fix DB migration test. Does not require a migration apparently. 2023-10-12 14:53:00 +02:00
5.db SessionData: add the passphrase. 2024-01-18 11:50:05 +01:00
6.db Add SessionData.needsVerification field (#2672) 2024-04-09 17:28:12 +02:00
7.db Remove SessionData.needsVerification as the source of truth for session verification status (#2748) 2024-04-24 13:55:25 +00:00