element-x-ada/libraries
Benoit Marty 1e546335df
Multi accounts - experimental first implementation (#5285)
* Multi account - Do not reset analytics store on sign out.

Else when 1 of many accounts is removed, the analytics opt in screen is displayed again.

* Multi accounts - first implementation.

* Multi accounts - Prevent user from logging twice with the same account

* Multi accounts - ignore automatic GoBack in case of error.

* Multi accounts - update first view when adding an account.

* Rename method storeData to addSession.

* Multi accounts - handle account switch when coming from a notification

* Multi accounts - handle login link when there is already an account.

* Multi accounts - handle click on push history for not current account.

* Multi accounts - improve layout and add preview.

* Add accountselect modules

* Multi accounts - incoming share with account selection

* Multi accounts - check the feature flag before allowing login using login link.

* Multi accounts - swipe on account icon

* Cleanup

* Multi accounts - fix other implementation of SessionStore

* Multi accounts - fix PreferencesRootPresenterTest

* Multi accounts - Add test on AccountSelectPresenter

* Multi accounts - Fix test on HomePresenter - WIP

* Update database to be able to sort accounts by creation date.

* Add unit test on takeCurrentUserWithNeighbors

* Fix test and improve code.

* Add exception

* Multi accounts - handle permalink

* Code quality

* Multi accounts - localization

* Fix issue after rebase on develop

* Fix issue after rebase on develop

* Fix tests

* Fix tests

* Fix tests

* Fix tests

* Update Multi accounts flag details.

* Add missing test on DatabaseSessionStore

* Add missing preview on LoginModeView

* Remove dead code.

* Add missing preview on PushHistoryView

* Document API.

* Rename API and update test.

* Remove MatrixAuthenticationService.loggedInStateFlow()

* Update screenshots

* Remove unused import

* Add exception

* Fix compilation issue after rebase on develop.

* Update screenshots

* Fix test

* Avoid calling getLatestSession() twice

* Rename `matrixUserAndNeighbors` to `currentUserAndNeighbors`

* Extract code to its own class.

* Add comment to clarify the code.

* Init current user profile with what we now have in the database.

It allows having the cached data (user display name and avatar) when starting the application when no network is available.

* Let the RustMatrixClient update the profile in the session database

* Fix test.

* When logging out from Pin code screen, logout from all the sessions.

tom

* Make PushData.clientSecret mandatory.
Also do not restore the last session as a fallback, it can lead to error in a multi account context, or even when a ghost pusher send a Push.

* Change test in RustMatrixAuthenticationServiceTest

* Do not use MatrixAuthenticationService in RootFlowNode, only use SessionStore

* Remove MatrixAuthenticationService.getLatestSessionId()

* Fix compilation issue after merging develop

* Add test on DefaultAccountSelectEntryPoint

* Fix compilation issue after merging develop

* Introduce LoggedInAccountSwitcherNode, to improve animation when switching between accounts.

* Rename Node to follow naming convention.

* Fix navigation issue after login.

* Remove unused import

* Revert "Fix navigation issue after login."

This reverts commit e409630856d7a7e741548016d7afe174ff1b40f7.

* Revert "Rename Node to follow naming convention."

This reverts commit 883b1f37c7207512d9f6605749977ad9045846a1.

* Revert "Introduce LoggedInAccountSwitcherNode, to improve animation when switching between accounts."

This reverts commit 9c698ff8152aceb5fd2b8b5ab5f609d28de64d24.

* Metro now have `@AssistedInject`.

* Update screenshots

* Introduce DelegateTransitionHandler and use it in RootFlowNode

---------

Co-authored-by: ElementBot <android@element.io>
Co-authored-by: ganfra <francoisg@element.io>
2025-09-26 15:45:06 +02:00
..
accountselect Multi accounts - experimental first implementation (#5285) 2025-09-26 15:45:06 +02:00
androidutils Use DependencyHandlerScope.testCommonDependencies() 2025-09-16 14:38:31 +02:00
architecture Multi accounts - experimental first implementation (#5285) 2025-09-26 15:45:06 +02:00
audio Remove dagger and anvil dependencies, try to simplify gradle build scripts a bit 2025-09-04 16:49:21 +02:00
core Use shared recent emoji reactions from account data (#5402) 2025-09-26 11:04:34 +00:00
cryptography Use DependencyHandlerScope.testCommonDependencies() 2025-09-16 14:38:31 +02:00
dateformatter Use DependencyHandlerScope.testCommonDependencies() 2025-09-16 14:38:31 +02:00
deeplink Add test on DefaultEntryPoints 2025-09-16 14:38:32 +02:00
designsystem Multi accounts - experimental first implementation (#5285) 2025-09-26 15:45:06 +02:00
di Fixes after rebase 2025-09-04 16:49:21 +02:00
encrypted-db refactor: Migrate SQLCipher Android to new API (#4874) 2025-06-23 09:29:44 +02:00
eventformatter Add thread decoration with latest event details (#5355) 2025-09-23 14:57:50 +00:00
featureflag Multi accounts - experimental first implementation (#5285) 2025-09-26 15:45:06 +02:00
fullscreenintent Use DependencyHandlerScope.testCommonDependencies() 2025-09-16 14:38:31 +02:00
indicator Use DependencyHandlerScope.testCommonDependencies() 2025-09-16 14:38:31 +02:00
maplibre-compose Update dependency app.cash.molecule:molecule-runtime to v2.2.0 (#5413) 2025-09-26 11:21:35 +02:00
matrix Multi accounts - experimental first implementation (#5285) 2025-09-26 15:45:06 +02:00
matrixui Merge branch 'develop' into feature/fga/join_space 2025-09-24 11:20:17 +02:00
mediapickers Use DependencyHandlerScope.testCommonDependencies() 2025-09-16 14:38:31 +02:00
mediaplayer Use DependencyHandlerScope.testCommonDependencies() 2025-09-16 14:38:31 +02:00
mediaupload Update metro to v0.6.7 (#5416) 2025-09-26 08:16:36 +00:00
mediaviewer Update metro to v0.6.7 (#5416) 2025-09-26 08:16:36 +00:00
network Remove dagger and anvil dependencies, try to simplify gradle build scripts a bit 2025-09-04 16:49:21 +02:00
oidc Multi accounts - experimental first implementation (#5285) 2025-09-26 15:45:06 +02:00
permissions Update metro to v0.6.7 (#5416) 2025-09-26 08:16:36 +00:00
preferences Use DependencyHandlerScope.testCommonDependencies() 2025-09-16 14:38:31 +02:00
previewutils sdk (space) : expose the via parameter from space room 2025-09-24 14:11:17 +02:00
push Update metro to v0.6.7 (#5416) 2025-09-26 08:16:36 +00:00
pushproviders Introduce runAndTestState extension on NotificationTroubleshootTest 2025-09-23 09:46:21 +02:00
pushstore Use DependencyHandlerScope.testCommonDependencies() 2025-09-16 14:38:31 +02:00
qrcode Check homeserver when login using qr code (#4708) 2025-05-15 14:08:05 +02:00
roomselect Update metro to v0.6.7 (#5416) 2025-09-26 08:16:36 +00:00
rustsdk
session-storage Multi accounts - experimental first implementation (#5285) 2025-09-26 15:45:06 +02:00
testtags Remove ExperimentalComposeUiApi. Not necessary anymore. 2025-06-11 17:49:11 +02:00
textcomposer Add thread decoration with latest event details (#5355) 2025-09-23 14:57:50 +00:00
troubleshoot Multi accounts - experimental first implementation (#5285) 2025-09-26 15:45:06 +02:00
ui-strings Sync Strings from Localazy (#5385) 2025-09-22 11:19:35 +02:00
ui-utils Use DependencyHandlerScope.testCommonDependencies() 2025-09-16 14:38:31 +02:00
usersearch Use DependencyHandlerScope.testCommonDependencies() 2025-09-16 14:38:31 +02:00
voiceplayer Update metro to v0.6.7 (#5416) 2025-09-26 08:16:36 +00:00
voicerecorder Use DependencyHandlerScope.testCommonDependencies() 2025-09-16 14:38:31 +02:00
wellknown Use DependencyHandlerScope.testCommonDependencies() 2025-09-16 14:38:31 +02:00