Commit Graph

467 Commits

Author SHA1 Message Date
bmarty 0b609db1db Sync Strings from Localazy 2024-11-04 00:27:46 +00:00
Benoit Marty 1c020bcf26 Merge pull request #3750 from element-hq/feature/bma/cryptoIteration
UI iteration on the encryption settings
2024-10-30 11:11:35 +01:00
Benoit Marty 1e0c212459 Crypto: iterate on wording, UI and UX.
Change wording of setup recovery key banner and change target to root.
Iterate on wording of encryption screen.
Change button to Switch.
Iterate on wording to delete key storage.
Iterate on wording and icon on the root setting.
Remove confirmation dialog when disabling backup.
Add subtitle to change recovery key action.
Enable key storage directly, remove quite empty screen to setup the backup.
Disable recovery action if key backup is disabled.
2024-10-29 14:54:59 +01:00
Benoit Marty b8b38208f4 Incoming session verification request
Add more log to the state machines
Ensure the block cannot be cancelled, else if the Rust SDK emit a new state during the API execution, the state machine may cancel the api call.
Let VerificationFlowState values match the SDK api for code clarity.
Rename sub interface for clarity.
Migrate tests to the new FakeVerificationService.
2024-10-29 09:26:15 +01:00
bmarty 1856363964 Sync Strings from Localazy 2024-10-28 00:27:09 +00:00
ganfra bc4a9a4ad0 knock : display alias in knocked room item list 2024-10-22 16:22:20 +02:00
ganfra b0503978a1 knock : display knocked room in the room list 2024-10-22 16:22:19 +02:00
ganfra 96b24c5299 knock : update strings 2024-10-22 16:22:07 +02:00
bmarty b179518962 Sync Strings from Localazy 2024-10-21 00:27:20 +00:00
Jorge Martin Espinosa 2e9dce391b Refresh room summaries when date or time changes in the device (#3683)
* Add `DateTimeObserver` to rebuild the room summary data when the date/time changes.

* Add time changed action too, to trigger when the user manually changes date/time

* Fix timezone issue by adding `TimezoneProvider`, fix tests

* Create test for `DateTimeObserver` usage in `RoomListDataSource`

* Create aRoomListRoomSummaryFactory function.

* Improve test by faking the lastMessageTimestampFormatter

---------

Co-authored-by: Benoit Marty <benoit@matrix.org>
2024-10-16 09:10:58 +00:00
bmarty 851a547b89 Sync Strings from Localazy 2024-10-14 00:27:28 +00:00
ganfra eeb6b6f4bf misc : remove direct usage of RoomSummary in UI and let RoomSummary use RoomInfo. 2024-10-08 21:34:34 +02:00
Jorge Martin Espinosa 5a4e5d0575 Fix the logic of the room list banner state (#3615)
* Fix `deriveStateOf` preventing the banner state from updating

* Try improving implementation of the check

* No need for `syncState`
2024-10-08 10:13:39 +00:00
Benoit Marty b60d7ba54a Use backgroundScope 2024-10-07 17:46:19 +02:00
Benoit Marty 792bc25ca2 Remove FakeLeaveRoomPresenter 2024-10-07 17:46:18 +02:00
Benoit Marty 0a7de7cc7d Remove dependencies to other presenters to LeaveRoomPresenter. 2024-10-07 17:46:16 +02:00
Benoit Marty 241dae14f4 Remove dependencies to other presenters to FullScreenIntentPermissionsPresenter.
Also do some renaming since FullScreenIntentPermissionsPresenter interface can be removed.
2024-10-07 17:45:18 +02:00
Benoit Marty a100676f4b Remove dependencies to other presenters from PreferencesRootPresenter.
Also do some renaming since DirectLogoutPresenter interface can be removed.
2024-10-07 17:45:17 +02:00
bmarty e25ba65170 Sync Strings from Localazy 2024-10-07 00:28:33 +00:00
Jorge Martin Espinosa 79c17f714f Use Anvil KSP instead of the Square KAPT one (#3564)
* Use Anvil KSP instead of the Square KAPT one

* Fix several configuration cache, lint and test issues

* Allow incremental kotlin compilation in the CI

* Workaround Robolectric + Compose issue that caused `AppNotIdleException`

* Update the `enterprise` commit hash

* Update screenshots

---------

Co-authored-by: ElementBot <android@element.io>
2024-10-02 11:52:17 +00:00
Jorge Martin Espinosa f344a1282c Don't display security banner for unknown RecoveryState (#3579)
* Don't display security banner for unknown `RecoveryState`

* Don't display 'set up recovery' if its status is unknown.

Add more screenshot tests.

* Update screenshots

---------

Co-authored-by: ElementBot <android@element.io>
2024-10-02 09:28:33 +00:00
bmarty 86373ad1f7 Sync Strings from Localazy 2024-09-30 00:26:52 +00:00
renovate[bot] 9756afc5d1 Update dependency androidx.compose:compose-bom to v2024.09.00 (#3399)
* Update dependency androidx.compose:compose-bom to v2024.09.00

* Adapt code for changes.

* Workaround crash when closing the RTE

* Fix broken bottom sheet colors and shape

* Fix tons of warnings and deprecations

* Fix lint issues

* Fix more M3 update changes

* Update screenshots

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
Co-authored-by: ElementBot <benoitm+elementbot@element.io>
Co-authored-by: ganfra <francoisg@matrix.org>
Co-authored-by: ElementBot <android@element.io>
2024-09-26 09:30:20 +02:00
Benoit Marty 280f7383b7 Merge pull request #3515 from element-hq/feature/bma/fixRageshakeCrash
Fix crash when session is deleted on another client
2024-09-23 11:44:11 +02:00
Benoit Marty fa3796d4ec Fix crash when the session is deleted on another client. 2024-09-23 09:30:48 +02:00
bmarty 1768f24fd0 Sync Strings from Localazy 2024-09-23 00:23:49 +00:00
Jorge Martín 4b2ea11037 Fix and add test 2024-09-19 08:15:12 +02:00
ganfra b364cee500 Room list : debounce subscribe to visible rooms. 2024-09-18 21:07:39 +02:00
bmarty 4583ffeaf9 Sync Strings from Localazy 2024-09-17 11:05:35 +00:00
bmarty bb0a281342 Sync Strings from Localazy 2024-09-16 18:40:24 +00:00
bmarty 1035f9ae60 Sync Strings from Localazy 2024-09-16 00:25:04 +00:00
Jorge Martin Espinosa 67e262fdc8 Add banner for optional migration to simplified sliding sync (#3429)
* Add banner for optional migration to native sliding sync

- Add `MatrixClient.isNativeSlidingSyncSupported()` and `MatrixClient.isUsingNativeSlidingSync` to check whether the home server supports native sliding sync and we're already using it.
- Add `NativeSlidingSyncMigrationBanner` composable to the `RoomList` screen when the home server supports native sliding sync but the current session is not using it.
- Add an extra logout successful action to the logout flow, create `EnableNativeSlidingSyncUseCase` so it can be used there.

* Update screenshots

* Make sure the sliding sync migration banner has lower priority than the encryption setup ones

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-09-09 18:13:19 +02:00
Benoit Marty f61df38e55 Migrate license to AGPL.
Run script `uv run license-editor --repository ../element-x-android`
2024-09-06 17:19:19 +02:00
Benoit Marty faa2f8108c Remove the migration screen. #3292 2024-09-04 12:11:31 +02:00
bmarty 5ad2764402 Sync Strings from Localazy 2024-09-02 00:15:17 +00:00
Benoit Marty d93762bbd0 Increase test coverage of securityBannerState() 2024-08-30 09:15:53 +02:00
Benoit Marty ad8e8305eb Add banner entry point to set up recovery 2024-08-29 18:34:55 +02:00
bmarty cd267249ec Sync Strings from Localazy 2024-08-26 00:25:40 +00:00
Benoit Marty f2b38e50e3 Add test on function name which may start or end with spaces and fix existing issues. 2024-08-20 17:11:30 +02:00
bmarty 3e67448006 Sync Strings from Localazy 2024-08-19 00:25:36 +00:00
ElementBot 8bd48fdc60 Sync Strings (#3297)
Co-authored-by: bmarty <3940906+bmarty@users.noreply.github.com>
2024-08-12 06:03:23 +00:00
ganfra 0b32dbebb5 tests : refactor some classes 2024-07-31 21:14:29 +02:00
bmarty 76804d9e48 Sync Strings from Localazy 2024-07-29 00:26:27 +00:00
ElementBot 1f01bd73c4 Sync Strings (#3232)
Co-authored-by: bmarty <3940906+bmarty@users.noreply.github.com>
2024-07-22 08:59:47 +00:00
Benoit Marty 5bda29ca7e Rework FakeMatrixRoom so that it contains only lambdas. (#3229)
* Upgrade lint to 8.7.0-alpha01

* FakeMatrixRoom: lambda everywhere

Fix test compilation issues
2024-07-22 10:39:48 +02:00
Benoit Marty 13853a39a5 Reduce the risk of text truncation in buttons. 2024-07-17 17:46:36 +02:00
Benoit Marty 83a366af2a Fix quality (Konsist failure) 2024-07-16 16:29:33 +02:00
Benoit Marty 85ceb0296c When user manually mark a room as read, also dismiss the notifications for this room. 2024-07-16 13:10:30 +02:00
Jorge Martin Espinosa 5944f112fb Subscribe to RoomListItems in the visible range (#3169)
* Subscribe to `RoomListItems` in the visible range

This ensures the room list items always have updated info.
2024-07-11 10:54:56 +02:00
Jorge Martin Espinosa 0be7058416 Unify the way we decide whether a room is a DM or a group room (#3100)
* Add centralised 'room is DM' check

Also add extension functions for `MatrixRoom` and `MatrixRoomInfo`.

* Use the centralised method and extension functions through the app, including:

- Room list.
- Room details screen.
- Invites.
- Notifications.

Replace most `isDirect` usages with `isDm`.

* Update screenshots

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-07-10 16:28:46 +00:00