Commit Graph

4355 Commits

Author SHA1 Message Date
Benoit Marty
17b6b08926 Import Compound code from project https://github.com/element-hq/compound-android 2025-10-03 18:23:27 +02:00
Benoit Marty
acc18fc081 Merge pull request #5451 from element-hq/feature/bma/spaceAnnoucement
Space annoucement
2025-10-03 16:48:49 +02:00
Benoit Marty
ffde95fb84 Merge pull request #5432 from element-hq/feature/bma/leaveSpace
Leave space: use SDK API.
2025-10-03 16:43:45 +02:00
Benoit Marty
4660fe428d Use semantics colors. 2025-10-03 15:07:41 +02:00
ganfra
d577f02126 Merge pull request #5449 from element-hq/feature/fga/room_list_space_invite
Room list space invite
2025-10-03 13:17:28 +02:00
Benoit Marty
a39f3212e2 Add unit test on SpaceAnnouncementPresenter 2025-10-03 09:54:42 +02:00
Benoit Marty
8664b2ce90 Add a way to use the primary color for the icon. 2025-10-03 00:14:27 +02:00
Benoit Marty
6e9ba7760e Add Composable for a Beta label 2025-10-03 00:14:24 +02:00
ganfra
2c3e4a45e4 Leave space: notify the room membership change 2025-10-02 19:49:34 +02:00
Benoit Marty
f5864f9f90 Merge pull request #5440 from element-hq/feature/bma/injectSessionId
Remove CurrentSessionIdHolder and inject SessionId instead.
2025-10-02 18:06:17 +02:00
ganfra
576429b183 feature(space) : filter space manually so we can show space invites 2025-10-02 17:38:47 +02:00
Benoit Marty
c36577889d Leave space: use the SDK API. 2025-10-02 17:26:02 +02:00
Benoit Marty
fb346a1587 Let SpaceId be an alias of RoomId 2025-10-02 17:25:33 +02:00
Benoit Marty
a36f10ae30 Update SDK 2025-10-02 17:25:31 +02:00
Benoit Marty
c242ad98a7 Remove unused dependency on javax.inject:javax.inject 2025-10-02 10:25:54 +02:00
Benoit Marty
0f94ebc56e We do not need CurrentSessionIdHolder anymore.
The SessionId can be provided by SessionMatrixModule and injected in constructors directly.
2025-10-01 17:57:13 +02:00
Benoit Marty
9ba549f08e Merge pull request #5431 from element-hq/feature/fga/space_list_join_action
Feature : space list join action
2025-10-01 14:53:30 +02:00
Benoit Marty
084bf5392a Merge branch 'develop' into feature/fga/space_list_join_action 2025-10-01 12:41:22 +02:00
renovate[bot]
f089718f16 fix(deps): update dependency net.java.dev.jna:jna to v5.18.1 2025-10-01 10:23:01 +00:00
Benoit Marty
b9638fb396 Add modifier parameter. 2025-10-01 11:22:46 +02:00
ganfra
388cb31700 misc (space) : ensure SpaceRoomList is destroyed 2025-10-01 10:49:35 +02:00
Benoit Marty
330f675541 Improve Previews. 2025-10-01 10:48:15 +02:00
ganfra
dbffad29d0 feature (space) : handle accept decline invite 2025-09-30 15:59:29 +02:00
Benoit Marty
0cd264937d Merge pull request #5420 from element-hq/feature/bma/metroAssistedInject
Ensure Metro `@AssistedInject` is used.
2025-09-30 15:39:23 +02:00
Benoit Marty
519a42dcff Add default value 2025-09-30 13:09:44 +02:00
Benoit Marty
03e92bac25 Add Preview 2025-09-30 12:19:21 +02:00
Benoit Marty
f5df8dcad9 Remove Progress from splashscreen to follow design requirements. 2025-09-30 12:15:25 +02:00
Benoit Marty
bfb51e188e loadingNode: hide ProgressIndicator in some cases. 2025-09-30 11:54:43 +02:00
Benoit Marty
1cd75af666 No need of DI for the LoadingNode. 2025-09-30 11:50:17 +02:00
Jorge Martin Espinosa
80e869c93e Follow permalinks to and from threads (#5414)
* Implement navigation to event inside a thread when a permalink is used

* Fix permalink navigation in threads to rooms

* Fix navigating to a different thread from a permalink in an existing thread

* Fix tests

* Add missing tests for thread navigation

* Reduce number of diff between ThreadedMessagesNode.kt and MessagesNode.kt

* Navigate back to the room when a link to the current room is clicked in a thread.

---------

Co-authored-by: Benoit Marty <benoitm@element.io>
Co-authored-by: Benoit Marty <benoit@matrix.org>
2025-09-30 09:18:13 +00:00
ganfra
de4e3d8735 feature (space) : some code clean up 2025-09-29 21:27:41 +02:00
ganfra
0390fde615 Merge branch 'develop' into feature/fga/space_list_join_action 2025-09-29 18:01:42 +02:00
Benoit Marty
095ea59b8f Merge branch 'develop' into feature/bma/incomingVerificationA11y 2025-09-29 17:57:00 +02:00
ElementBot
c6d4a367d3 Sync Strings from Localazy (#5427)
Co-authored-by: bmarty <3940906+bmarty@users.noreply.github.com>
2025-09-29 15:10:21 +00:00
Benoit Marty
65b6b6b4aa Update test. 2025-09-29 17:05:02 +02:00
Benoit Marty
ef29c4ba97 Remove code duplication around UserProfile mapper. 2025-09-29 15:38:08 +02:00
Benoit Marty
fd2041a7ef SessionVerificationRequestDetails: map deviceDisplayName. 2025-09-29 15:38:07 +02:00
Benoit Marty
71b61a13a6 Fix compilation issue. 2025-09-29 10:06:31 +02:00
Benoit Marty
733ac57928 Create a LoadingNode to reduce code duplication. 2025-09-29 09:34:37 +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
04e4316c3e 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
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
2a43cfec31 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
7050076beb feature (space) : add trailing action to SpaceRoomItemView 2025-09-25 15:31:22 +02:00