Commit graph

4317 commits

Author SHA1 Message Date
Benoit Marty
07f1bca16f Remove code duplication around UserProfile mapper. 2025-09-29 15:38:08 +02:00
Benoit Marty
b96f75db26 SessionVerificationRequestDetails: map deviceDisplayName. 2025-09-29 15:38:07 +02:00
Benoit Marty
0e3efafa6d
Merge branch 'develop' into feature/bma/leaveSpace 2025-09-26 15:46:57 +02:00
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
Benoit Marty
cbd591e102 Remove translations (key values have changed).
Translations will be back during the next Localazy sync.
2025-09-26 14:14:01 +02:00
Benoit Marty
74c2ee46d8 Leave space - Add screen to leave a space. 2025-09-26 14:14:00 +02:00
Jorge Martin Espinosa
a8c4d5d019
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]
c412d6c53f
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]
5b9ce7a210
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]
a0ed77775d
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]
a8e1744fe5
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
a52e1d3b7d
Merge pull request #5398 from element-hq/renovate/jna-monorepo
Update dependency net.java.dev.jna:jna to v5.18.0
2025-09-25 16:17:30 +02:00
ganfra
a2de7b8ddd sdk (space) : expose the via parameter from space room 2025-09-24 14:11:17 +02:00
ganfra
dd2c9d4450 sdk (space) : use the new space/spaceUpdate api from space list 2025-09-24 12:48:24 +02:00
Benoit Marty
f3f19ec476
Merge branch 'develop' into feature/fga/join_space 2025-09-24 11:20:17 +02:00
Jorge Martin Espinosa
0a5c178fe8
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
renovate[bot]
0a9fc58d75
Update dependency net.java.dev.jna:jna to v5.18.0 2025-09-23 13:02:18 +00:00
Benoit Marty
4a04bd5b83
Merge pull request #5394 from element-hq/feature/bma/testIgnoredUser
Add troubleshhot notification test about blocked users
2025-09-23 12:31:56 +02:00
Benoit Marty
2884ae0f44 Detekt and ktlint are confused with Kotlin context... 2025-09-23 10:10:44 +02:00
Benoit Marty
8d5078904a Introduce runAndTestState extension on NotificationTroubleshootTest 2025-09-23 09:46:21 +02:00
Benoit Marty
8434b504d4 Cleanup 2025-09-23 09:28:01 +02:00
Benoit Marty
1d82ad394f Add missing tests on TroubleshootTestSuite 2025-09-23 09:26:13 +02:00
Benoit Marty
a83fc2aa1d Add default value for Failure.hasQuickFix 2025-09-23 09:13:45 +02:00
Benoit Marty
fa14e4c106 Add notification troubleshoot test about blocked users. 2025-09-23 08:59:40 +02:00
ganfra
18224894bd fix (timeline) : forward pagination regression 2025-09-22 16:28:46 +02:00
Benoit Marty
d8ccbcf0ed Introduce LoadedDetails, different for Room and Space. 2025-09-22 16:26:33 +02:00
Benoit Marty
ef8bf0619a Code cleanup 2025-09-22 14:59:43 +02:00
Benoit Marty
9ac1bf661d
Merge pull request #5388 from element-hq/feature/bma/fixIssueOnFtueNotificationScreen
Change in clear cache behavior
2025-09-22 12:15:17 +02:00
ElementBot
d64b867f03
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
290298ce01 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
renovate[bot]
0bdf998c7f
Update dependency org.matrix.rustcomponents:sdk-android to v25.9.19 (#5377)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-19 15:53:02 +00:00
ganfra
91455c6019 feature (space) : add string "No space name" 2025-09-19 17:42:47 +02:00
ganfra
c4308e9810 Merge branch 'develop' into feature/fga/join_space 2025-09-19 16:35:55 +02:00
Jorge Martin Espinosa
5c893e7de1
Add logs to detect duplicates in the room list (#5364)
* Add logs to detect duplicates in the room list

* Add comments and helper class about the caching results logging
2025-09-19 14:24:06 +00:00
Benoit Marty
92b8be99d1 Remove MatrixAuthenticationService.getLatestSessionId() 2025-09-19 10:57:26 +02:00
Benoit Marty
a8c12892a9 Change test in RustMatrixAuthenticationServiceTest 2025-09-19 10:57:22 +02:00
Benoit Marty
121eb11fa7 Remove MatrixAuthenticationService.loggedInStateFlow() 2025-09-19 10:57:20 +02:00
Benoit Marty
80fa442b64 Rename API and update test. 2025-09-19 10:57:18 +02:00
Benoit Marty
65d682f8ca Rename method storeData to addSession. 2025-09-19 10:57:17 +02:00
Benoit Marty
1cc7afb585 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.
2025-09-19 08:57:23 +02:00
Benoit Marty
b194153b66
Merge branch 'develop' into feature/bma/testEntryPoint 2025-09-18 18:58:30 +02:00
Benoit Marty
e980936162
Merge pull request #5306 from element-hq/feature/bma/removeDeadCode
Remove dead code
2025-09-18 18:11:06 +02:00
Benoit Marty
692362ecce
Merge pull request #5361 from element-hq/feature/bma/testMediaGalleryPresenter
Complete test on MediaGalleryPresenter
2025-09-18 18:09:20 +02:00
Valere
b13c93f3cd fix the tests 2025-09-18 14:32:01 +02:00
Valere
6052d453fe fix Conflicting import 2025-09-18 12:25:28 +02:00
Valere
1a7ce368b7 refactor: rename CallNotify to RtcNotification to match new event 2025-09-18 09:25:13 +02:00
Valere
277602f2bc fix test compilation 2025-09-17 15:53:14 +02:00
Valere
d350a553a9 bump rust component version 2025-09-17 15:28:48 +02:00
Valere
508aef98ff Use the new RtcNotification instead of deprecated CallNotify 2025-09-17 15:15:33 +02:00
Benoit Marty
cbad0c31d8 Complete test on MediaGalleryPresenter 2025-09-17 12:18:37 +02:00