Commit Graph

112 Commits

Author SHA1 Message Date
Benoit Marty ba393b381f Fix stability issue. 2025-10-09 18:22:18 +02:00
Benoit Marty c2560ad91c Merge pull request #5490 from element-hq/feature/bma/improveImmutables
Ensure that we are using Immutable instead of Persistent
2025-10-09 11:48:32 +02:00
Benoit Marty 67c9daa0bf Add Konsist test to check that toPersistentList() is not used.
Same for `toPersistentSet()` and `toPersistentMap()`.
Fix existing issues.
2025-10-08 15:51:18 +02:00
Benoit Marty d806cf0ca4 Merge pull request #5486 from element-hq/sync-localazy
Sync Strings
2025-10-08 14:13:46 +02:00
bmarty cb7186cf69 Sync Strings from Localazy 2025-10-08 10:23:22 +00:00
Benoit Marty 1a8bf8b8a0 Merge pull request #5482 from element-hq/feature/bma/improveAnnouncementService
Improve AnnouncementService.
2025-10-08 12:08:29 +02:00
Benoit Marty 752e846b1c Improve AnnouncementService. 2025-10-08 10:13:02 +02:00
Benoit Marty cd1b56bb26 Reduce number of changes in preview. 2025-10-07 21:56:25 +02:00
ganfra 44c6ce01dc feature(space): use SpaceRoom.displayName from sdk 2025-10-07 20:15:46 +02:00
Benoit Marty 98637b8fc5 Show new notification sound banner logic 2025-10-07 15:53:59 +02:00
Benoit Marty 58fca2e9e2 New notification sound banner 2025-10-07 15:53:56 +02:00
Benoit Marty a584a5c1c6 Update Localazy config and sync all the strings. 2025-10-07 15:53:53 +02:00
ganfra a497703a90 Merge pull request #5468 from element-hq/feature/fga/space_tweaks
Spaces : some tweaks around ui
2025-10-07 10:55:05 +02:00
Benoit Marty 69c86232c4 Merge pull request #5466 from element-hq/feature/bma/replaceFunByVal
Replace fun by val in MatrixClient
2025-10-06 22:34:39 +02:00
Benoit Marty 3f54017ec3 Merge pull request #5462 from element-hq/feature/bma/enableSpaces
Add support for Spaces
2025-10-06 22:34:14 +02:00
ganfra 17f9673a0f feature(space): introduce SpaceRoomVisibility and remove room count 2025-10-06 20:50:05 +02:00
Benoit Marty 77647a3f11 Let MatrixClient exposes val instead of fun for the services. 2025-10-06 15:12:35 +02:00
ganfra 8d94df09ac feature(space): compute space room name locally 2025-10-06 14:21:01 +02:00
Benoit Marty 3080baace2 Fix tests. 2025-10-06 12:52:59 +02:00
ElementBot 7095b460b3 Sync Strings from Localazy (#5460)
Co-authored-by: bmarty <3940906+bmarty@users.noreply.github.com>
2025-10-06 12:38:51 +02:00
Benoit Marty 97ae89ed96 Merge pull request #5451 from element-hq/feature/bma/spaceAnnoucement
Space annoucement
2025-10-03 16:48:49 +02:00
Benoit Marty d7f39c332f Introduce Announcement enum. 2025-10-03 12:05:06 +02:00
Benoit Marty 2907f762f6 Announcement for Spaces 2025-10-03 00:15:27 +02:00
ganfra 0d4e2dd2fb feature(space) : ensure RoomSummaryRow can display space invites 2025-10-02 16:15:33 +02:00
Benoit Marty 32be0e2c25 Remove code duplication. 2025-10-01 11:21:36 +02:00
ganfra 6eae9e379f Merge branch 'develop' into feature/fga/space_list_join_action 2025-09-29 18:01:42 +02:00
ElementBot 95949e615f 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 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
ganfra d661355e23 feature (space) : allow joining children from space screen 2025-09-26 11:25:08 +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
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
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 2af6895b9f Fix compilation issues after merging develop. 2025-09-18 21:36:21 +02:00
Benoit Marty a1aeb24f23 Add test on DefaultEntryPoints 2025-09-16 14:38:32 +02:00
Benoit Marty a575019760 Use DependencyHandlerScope.testCommonDependencies() 2025-09-16 14:38:31 +02:00
Benoit Marty 7a60e46d8f Method can be private. 2025-09-16 10:24:16 +02:00
ElementBot 23cb084126 Sync Strings from Localazy (#5349)
Co-authored-by: bmarty <3940906+bmarty@users.noreply.github.com>
2025-09-15 08:39:59 +02:00
Benoit Marty 2128f3c059 Introduce MatrixClient.rememberHideInvitesAvatar() extension to reduce code duplication. 2025-09-10 15:48:08 +02:00
Benoit Marty bb39a9f399 Code cleanup, remove dead code and fix compilation issue 2025-09-10 14:47:07 +02:00
ganfra d4d2aa1707 feature (space) : add space cache and navigation to sub space/room 2025-09-10 14:31:44 +02:00
ganfra b45a4c3b2c feature (space) : iterate on space list (and space screen) 2025-09-10 14:30:10 +02:00
ganfra 5d8ca6590e feature (space) : extract SpaceRoomItemView 2025-09-10 14:28:30 +02:00
ganfra aadd8b45e2 feature(spaces) : introduce SpaceRoomList matrix api 2025-09-10 14:25:17 +02:00
Benoit Marty 7f1355fabd Hide the home navigation bar if the user is not a member of any Space.
https://github.com/element-hq/element-meta/issues/2906: `The tab bar with the option to view joined spaces is only shown when the user has at least one space that they have joined (because otherwise they have no clue what to do in here).`
2025-09-08 15:22:20 +02:00
Benoit Marty a2dd455f22 Merge pull request #5273 from element-hq/feature/bma/spaceNextStep
Space: add content in home screen
2025-09-05 17:55:14 +02:00
Benoit Marty d09bc71f32 Fix compilation issue after rebase on develop. 2025-09-05 17:27:01 +02:00
Benoit Marty c24d5fc608 Code quality 2025-09-05 17:09:43 +02:00
Benoit Marty 63706c0558 Add tests on HomeSpacesPresenter 2025-09-05 17:09:42 +02:00
Benoit Marty a22ab5e663 Add space header. 2025-09-05 17:09:40 +02:00
Benoit Marty a0ec8658af Take into account hiding avatars from invitation 2025-09-05 17:09:40 +02:00