element-x-ada/features
Jorge Martin Espinosa 5c59f6c20f
Enforce mandatory session verification only for new logins (#2811)
* Enforce mandatory session verification only for new logins

- Creates `AppMigration` base interface as a way to isolate migration logic, app migrations must implement this interface.
- Creates `AppMigration01` with the existing logs removal migration and `AppMigration02` with the logic to allow existing sessions to skip verification.
- Add `DefaultSessionPreferencesStoreFactory.remove(sessionId)` to allow a ephemeral session store access to exist outside the `SessionScope` for this new migration.

* Fix tests

* Add more tests.

This also includes creating several abstractions.

* Review changes.

- Make `orderedMigrations` a class property, `migrations` just a constructor parameter to avoid incorrect usages.
- Create `lastMigration` property too, use it instead of `MIGRATION_VERSION`.
2024-05-07 14:06:34 +00:00
..
analytics Sync Strings from Localazy 2024-05-06 00:19:35 +00:00
cachecleaner Add Konsist test to check that assertThat is imported, and fix existing issues. 2023-12-04 15:18:01 +01:00
call Enforce mandatory session verification only for new logins (#2811) 2024-05-07 14:06:34 +00:00
createroom Open user profile and room with event from permalink 2024-05-02 12:25:21 +02:00
ftue Enforce mandatory session verification only for new logins (#2811) 2024-05-07 14:06:34 +00:00
invite Change API MatrixClient.joinRoom(roomId: RoomId): Result<RoomId> to MatrixClient.joinRoom(roomId: RoomId): Result<Unit> 2024-04-19 18:11:13 +02:00
joinroom Sync Strings from Localazy 2024-04-29 00:18:59 +00:00
leaveroom Sync Strings from Localazy 2024-05-06 00:19:35 +00:00
location Do not ignore those tests. 2024-04-26 16:40:09 +02:00
lockscreen Sync Strings from Localazy 2024-05-06 00:19:35 +00:00
login Sync Strings from Localazy 2024-05-06 00:19:35 +00:00
logout Open user profile and room with event from permalink 2024-05-02 12:25:21 +02:00
messages Enforce mandatory session verification only for new logins (#2811) 2024-05-07 14:06:34 +00:00
migration Enforce mandatory session verification only for new logins (#2811) 2024-05-07 14:06:34 +00:00
networkmonitor Update Compound to v0.0.5 and update icons (#2380) 2024-02-12 16:41:58 +00:00
onboarding Rename Preview to follow code convention 2024-04-19 14:30:45 +02:00
poll Sync Strings from Localazy 2024-05-06 00:19:35 +00:00
preferences Enforce mandatory session verification only for new logins (#2811) 2024-05-07 14:06:34 +00:00
rageshake Enforce mandatory session verification only for new logins (#2811) 2024-05-07 14:06:34 +00:00
roomaliasresolver Sync Strings from Localazy 2024-04-29 00:18:59 +00:00
roomdetails Sync Strings from Localazy 2024-05-06 00:19:35 +00:00
roomdirectory Sync Strings from Localazy 2024-04-29 00:18:59 +00:00
roomlist Enforce mandatory session verification only for new logins (#2811) 2024-05-07 14:06:34 +00:00
securebackup Sync Strings from Localazy 2024-05-06 00:19:35 +00:00
signedout Sync Strings from Localazy 2024-05-06 00:19:35 +00:00
userprofile Sort imports. 2024-05-03 12:17:41 +02:00
verifysession Enforce mandatory session verification only for new logins (#2811) 2024-05-07 14:06:34 +00:00
viewfolder Update Compound to v0.0.5 and update icons (#2380) 2024-02-12 16:41:58 +00:00