Commit graph

11757 commits

Author SHA1 Message Date
Benoit Marty
36070c3e2b loadingNode: hide ProgressIndicator in some cases. 2025-09-30 11:54:43 +02:00
Benoit Marty
fa77166092 No need of DI for the LoadingNode. 2025-09-30 11:50:17 +02:00
Benoit Marty
ea2baf923b Fix issue after rebase. 2025-09-29 10:44:23 +02:00
Benoit Marty
bb11d7d5ae Fix compilation issue. 2025-09-29 10:06:31 +02:00
Benoit Marty
04563d8ac3 Create a LoadingNode to reduce code duplication. 2025-09-29 09:34:37 +02:00
Benoit Marty
52c93ef1d8 Use AssistedInject instead of Inject. 2025-09-29 09:32:45 +02:00
Benoit Marty
0f479c1947 Add Konsist test to check Metro annotation. 2025-09-29 09:32:44 +02:00
Benoit Marty
81739d2b8a
Update metro to v0.6.8 (#5422)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-29 08:58:30 +02:00
renovate[bot]
bbd101c6e1
Update metro to v0.6.8 2025-09-26 22:12:39 +00:00
Benoit Marty
59df60ab76
Merge pull request #5354 from element-hq/feature/bma/leaveSpace
Leave space - UI
2025-09-26 16:58:53 +02:00
renovate[bot]
2dd2a52f01
Update dependency com.posthog:posthog-android to v3.22.0 (#5415)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-26 16:52:45 +02:00
Benoit Marty
ef36922594 Address review comments. 2025-09-26 16:28:13 +02:00
ElementBot
c78aa7cef1 Update screenshots 2025-09-26 14:01:17 +00: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
ElementBot
692111790e Update screenshots 2025-09-26 12:33:35 +00:00
Benoit Marty
4d1a5031da Metro now have @AssistedInject. 2025-09-26 14:15:02 +02:00
Benoit Marty
c1678b548b Cleanup to be able to merge. 2025-09-26 14:14:06 +02:00
Benoit Marty
b4232a83fd Update tests 2025-09-26 14:14:05 +02:00
Benoit Marty
5afe213fe4 Update UI 2025-09-26 14:14:05 +02:00
Benoit Marty
f503bc401e Select all rooms by default 2025-09-26 14:14:04 +02:00
Benoit Marty
de6f52c72a Add unit test on LeaveSpaceState 2025-09-26 14:14:03 +02:00
Benoit Marty
9732d55a20 Add the (Admin) info. 2025-09-26 14:14:02 +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
ganfra
68fa054a68
Merge pull request #5409 from element-hq/renovate/androidx.sqlite-sqlite-ktx-2.x
Update dependency androidx.sqlite:sqlite-ktx to v2.6.1
2025-09-25 17:04:16 +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
7334a972b1
Merge pull request #5405 from element-hq/renovate/org.owasp.dependencycheck-12.x
Update plugin dependencycheck to v12.1.6
2025-09-25 16:18:31 +02: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
renovate[bot]
667c44249c
Update dependency io.element.android:element-call-embedded to v0.16.0 (#5408)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-25 15:38:31 +02:00
renovate[bot]
da73cccd1b
Update dependency androidx.sqlite:sqlite-ktx to v2.6.1 2025-09-25 07:43:06 +00:00
renovate[bot]
bdc15f5fb0
Update dependency com.posthog:posthog-android to v3.21.3 (#5360)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-25 09:41:10 +02:00
ganfra
577f1499cd
Merge pull request #5404 from element-hq/feature/fga/space_list_sdk_api
Sdk : use latest apis for space
2025-09-24 15:54:07 +02:00
ganfra
6a5098fc2a
Merge branch 'develop' into feature/fga/space_list_sdk_api 2025-09-24 15:21:40 +02:00
renovate[bot]
6ff3bf735f
Update plugin dependencycheck to v12.1.6 2025-09-24 13:08:09 +00:00
Benoit Marty
be3a5c759d Changelog for version 25.09.2 2025-09-24 15:05:06 +02:00
Benoit Marty
a5a87a20cc Merge tag 'v25.09.2' into develop 2025-09-24 14:36:58 +02:00
Benoit Marty
ca686c9e54 Merge branch 'release/25.09.2' into main 2025-09-24 14:35:40 +02:00
Benoit Marty
db1672b813 Adding fastlane file for version 25.09.2 2025-09-24 14:35:33 +02:00
Benoit Marty
5273715883 Setting version for the release 25.09.2 2025-09-24 14:33:47 +02:00
renovate[bot]
0c47168b4d
Update dependency io.sentry:sentry-android to v8.22.0 (#5397)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-24 14:30:00 +02:00
Benoit Marty
459bbecd4a
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
a953547837
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
d8f07896e8 feature (space) : use via parameter from space room 2025-09-24 14:11:46 +02:00
ganfra
a2de7b8ddd sdk (space) : expose the via parameter from space room 2025-09-24 14:11:17 +02:00
Benoit Marty
6cd0af9235
Merge pull request #5378 from element-hq/feature/fga/join_space
Feature : Join Space (WIP)
2025-09-24 13:50:07 +02:00