Commit Graph

4811 Commits

Author SHA1 Message Date
Benoit Marty
fd2041a7ef SessionVerificationRequestDetails: map deviceDisplayName. 2025-09-29 15:38:07 +02:00
Benoit Marty
c8090b136b Add a11y preview for incoming verification request.
We want to see the string a11y_session_verification_time_limited_action_required.

tom
2025-09-29 15:38:03 +02:00
Benoit Marty
4b641dbe1a Do not use plurals in this case since it can lead to lint issues since there is no %d in the value for one and this triggers a warning in some languages. 2025-09-29 14:43:16 +02:00
Benoit Marty
e26aae4ac8 Address review comments. 2025-09-26 16:28:13 +02:00
Benoit Marty
a6720078b4 Merge branch 'develop' into feature/bma/leaveSpace 2025-09-26 15:46:57 +02:00
Benoit Marty
73a6ba2849 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
Benoit Marty
01e022eeae Metro now have @AssistedInject. 2025-09-26 14:15:02 +02:00
Benoit Marty
6608d29fa0 Cleanup to be able to merge. 2025-09-26 14:14:06 +02:00
Benoit Marty
3c64eeb1c4 Update tests 2025-09-26 14:14:05 +02:00
Benoit Marty
7035a81e0f Update UI 2025-09-26 14:14:05 +02:00
Benoit Marty
3b7180a012 Select all rooms by default 2025-09-26 14:14:04 +02:00
Benoit Marty
8ceea9ed0c Add unit test on LeaveSpaceState 2025-09-26 14:14:03 +02:00
Benoit Marty
4b60475821 Add the (Admin) info. 2025-09-26 14:14:02 +02:00
Benoit Marty
bc465d724a Leave space - Add screen to leave a space. 2025-09-26 14:14:00 +02:00
Jorge Martin Espinosa
f1cd80ede8 Use shared recent emoji reactions from account data (#5402)
* Use shared recent emoji reactions from account data

- Add `AddRecentEmoji` and `GetRecentEmojis` use cases to avoid injecting the whole `MatrixClient` for just one of these operations.
- Update the UI and logic of the emoji picker and message context menu to include the recent emojis.
- Add `CoroutineDispatchers.Default` with the defaults coroutines to use in the app for ease of use.

* Instead of replacing suggested emojis, concatenate recent ones removing duplicates

* Update screenshots

---------

Co-authored-by: ElementBot <android@element.io>
2025-09-26 11:04:34 +00:00
renovate[bot]
4dc65d9c08 Update dependency app.cash.molecule:molecule-runtime to v2.2.0 (#5413)
* Update dependency app.cash.molecule:molecule-runtime to v2.2.0

* Fix compilation warnings

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Benoit Marty <benoit@matrix.org>
2025-09-26 11:21:35 +02:00
renovate[bot]
c1cd259ce7 Update metro to v0.6.7 (#5416)
* Update metro to v0.6.7

* Replace `@Inject` with `@AssistedInject` where needed

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
2025-09-26 08:16:36 +00:00
renovate[bot]
2d6031d3ac Update kotlin (#5317)
* Update kotlin

* Upgrade Metro and add new `@Origin` annotation

* Suppress warnings in overridden method as nothing else would work

* "Fix" quality warnings about reusing the same string literal

* Don't use `compat` version for `datetime` dependency

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
2025-09-26 08:34:20 +02:00
renovate[bot]
644c8284e4 Update dependency org.matrix.rustcomponents:sdk-android to v25.9.25 (#5412)
* Update dependency org.matrix.rustcomponents:sdk-android to v25.9.25

* Adapt to SDK changes:

`MessageLikeEventType` is now a sealed interface and has a new `data class Other(val v1: String)` case.

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
2025-09-25 14:33:15 +00:00
ganfra
b7b0de627d Merge branch 'develop' into feature/fga/space_list_sdk_api 2025-09-24 15:21:40 +02:00
Benoit Marty
73bd7ec51c Merge pull request #5387 from p1gp1g/fix
Put developer settings at the end of the view
2025-09-24 14:29:32 +02:00
Benoit Marty
13706a4dc0 Merge pull request #5401 from element-hq/feature/bma/messagesViewTopBars
Rework on messages view top bars
2025-09-24 14:15:22 +02:00
ganfra
af5234478c feature (space) : use via parameter from space room 2025-09-24 14:11:46 +02:00
ganfra
718b4dd11b sdk (space) : use the new space/spaceUpdate api from space list 2025-09-24 12:48:24 +02:00
Benoit Marty
461565fc9c Merge branch 'develop' into feature/fga/join_space 2025-09-24 11:20:17 +02:00
Jorge Martin Espinosa
e6b7ab8204 Ensure the thread summary sender display name won't wrap to the next line (#5403) 2025-09-24 10:16:42 +02:00
Benoit Marty
e5cc4938ad More cleanup 2025-09-23 21:56:03 +02:00
Benoit Marty
f1a9a2200b More cleanup 2025-09-23 21:51:26 +02:00
Benoit Marty
1fcd47f3e8 More cleanup 2025-09-23 21:49:11 +02:00
Benoit Marty
3c35a457aa Reduce number of previews of MessagesView and create preview dedicated to MessagesViewTopBar. 2025-09-23 21:49:11 +02:00
Benoit Marty
f05b1355fb Extract topbars from MessagesView to reduce this file size.
No code change.
2025-09-23 21:49:10 +02:00
Jorge Martin Espinosa
b75b79bf40 When joining a call, wait for the content_loaded action (#5399)
* When joining a call, wait for the `content_loaded` action

This ensures the widget won't be disposed when the user joins a call and loads the lobby screen for room calls
2025-09-23 15:18:53 +00:00
Jorge Martin Espinosa
3a3dce150a Add thread decoration with latest event details (#5355)
* Add thread decoration with latest event details
* Update screenshots

---------

Co-authored-by: ElementBot <android@element.io>
2025-09-23 14:57:50 +00:00
ganfra
72e39c2abb Merge branch 'develop' into fix 2025-09-23 14:38:45 +02:00
Benoit Marty
c4d7d42141 Add notification troubleshoot test about blocked users. 2025-09-23 08:59:40 +02:00
Benoit Marty
e8c2fe3a75 Add missing tests. 2025-09-22 17:53:30 +02:00
Benoit Marty
09f4518eb7 Add missing preview case (space without name) 2025-09-22 17:23:55 +02:00
Benoit Marty
b51c421e29 Introduce LoadedDetails, different for Room and Space. 2025-09-22 16:26:33 +02:00
Benoit Marty
1ba474e3d8 Localazy 2025-09-22 15:47:34 +02:00
Benoit Marty
15bcf3516a Fix existing tests 2025-09-22 15:36:38 +02:00
Benoit Marty
a25797dfd3 Code cleanup 2025-09-22 14:59:43 +02:00
Benoit Marty
8dee4d0137 Merge pull request #5388 from element-hq/feature/bma/fixIssueOnFtueNotificationScreen
Change in clear cache behavior
2025-09-22 12:15:17 +02:00
ElementBot
99f956bdc3 Sync Strings from Localazy (#5385)
Co-authored-by: bmarty <3940906+bmarty@users.noreply.github.com>
2025-09-22 11:19:35 +02:00
Benoit Marty
f683728f35 Change in clear cache behavior:
- Do not reset the analytics store, so that we do not ask the user consent again => Parity with iOS.
- Do not reset the permission store, because it contains information that's related to the system permission, which cannot be retrieved otherwise => Should help with #3195.
2025-09-22 11:14:41 +02:00
Benoit Marty
bb5ef7a62c Merge pull request #5379 from element-hq/feature/bma/cleanupFtueCode
Cleanup ftue code and ensure verification confirmation is displayed
2025-09-22 11:13:50 +02:00
Jorge Martin Espinosa
750a88410b Add room info to the thread's top app bar (#5374)
* Add room info to the thread's top app bar

* Update screenshots

* Fix lint issues

---------

Co-authored-by: ElementBot <android@element.io>
2025-09-22 09:56:36 +02:00
Benoit Marty
b1b37b1224 Simplify the code again.
We do not need `isVerificationStatusKnown`. If `sessionVerificationService.sessionVerifiedStatus` is `Unknown`, `isSessionVerificationStateReady()` will return true and `isSessionNotVerified()` will not be called, since the `ftueState` will be `FtueStep.WaitingForInitialState`.

Note that TU is still OK with this change.
2025-09-22 09:34:32 +02:00
sim
efa3a2fc3a Put developer settings at the end of the view
It used to be before "Sign out" which once the developer setting was
enabled went over the build version. So clicking 8 times on the build
version instead of 7 to enable dev settings was signing out the user.
2025-09-22 09:01:43 +02:00
Benoit Marty
b2630553b4 Ensure we wait for user confirmation of session verified before going to next step. 2025-09-19 18:50:56 +02:00
ganfra
dd13605085 feature (space) : add string "No space name" 2025-09-19 17:42:47 +02:00