Commit Graph

383 Commits

Author SHA1 Message Date
Benoit Marty b87bec6228 Account deactivation. 2024-09-17 16:51:11 +02:00
bmarty bb0a281342 Sync Strings from Localazy 2024-09-16 18:40:24 +00:00
Jorge Martin Espinosa 663362ac7f Add forced logout flow when the proxy is no longer available (#3458)
* Add `MatrixClient.isSlidingSyncProxySupported` function

* Update localazy strings

* Modify `ErrorDialog` to have an `onSubmit` call, which will be used for the submit action.

Also make the title text optional and dismissing the dialog by tapping outside/going back configurable.

* Check if a forced migration to SSS is needed because the proxy is no longer available.

In that case, display the non-dismissable dialog and force the user to log out after enabling SSS.

* Enable native/simplified sliding sync by default.

* Refactor the login to make sure we:

1. Always try native/simplified sliding sync login first, if available.
2. Then, if it wasn't available or failed with an sliding sync not supported error, try with the proxy instead (either discovered proxy or forced custom one).

* Move logic to `LoggedInPresenter` and the UI to `LoggedInView`

* Update screenshots

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-09-16 09:13:02 +00:00
Benoit Marty 88b0eff0fe Introduce value class "DeviceId" 2024-09-11 09:52:25 +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
Benoit Marty 965e445d04 Replace OSS licenses plugin with Licensee and some manually done UI.
This should fix both configuration cache and reproducible F-droid builds.

Cleanup and remove gplay/fdroid diff on open source licenses.

Co-authored by @jmartinesp
2024-09-02 21:11:52 +02:00
bmarty 5ad2764402 Sync Strings from Localazy 2024-09-02 00:15:17 +00:00
Benoit Marty 460e095e78 Provide dark theme parameter. 2024-08-29 12:23:39 +02:00
Benoit Marty cfbd0c4c02 Ensure success logout url is opened in all cases. 2024-08-29 12:16:38 +02:00
Benoit Marty 1026a296e3 Make LogoutUseCase.logout return the result of the SDK method. 2024-08-29 11:47:22 +02:00
bmarty cd267249ec Sync Strings from Localazy 2024-08-26 00:25:40 +00: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
bmarty 76804d9e48 Sync Strings from Localazy 2024-07-29 00:26:27 +00:00
ganfra 60fdee32bf Merge branch 'develop' into feature/jme/add-simplified-sliding-sync-toggle 2024-07-24 17:35:57 +02:00
ElementBot 1f01bd73c4 Sync Strings (#3232)
Co-authored-by: bmarty <3940906+bmarty@users.noreply.github.com>
2024-07-22 08:59:47 +00:00
Jorge Martín d4f8052696 Unify the internal pinunlock.SignOut and the new LogoutUseCase classes 2024-07-19 19:51:49 +02:00
Jorge Martín ff6ea43237 Don't reset the SSS toggle when logged out.
Instead, force a logout when toggling the option so user needs to log in again and create a new session using SSS.
2024-07-19 16:32:25 +02:00
Jorge Martín b9f4403408 Add simplified sliding sync toggle to developer options 2024-07-19 14:46:42 +02:00
Benoit Marty 766ae389ce Add generated screen to show open source licenses.
For Google Play variant only
2024-07-17 15:53:08 +02:00
bmarty 14511633db Sync Strings from Localazy 2024-07-15 00:23:30 +00:00
Benoit Marty b0c9091948 Merge pull request #3159 from element-hq/feature/bma/elementCallPip
Add support for Picture In Picture for Element Call
2024-07-08 19:58:39 +02:00
Benoit Marty 966219b791 Rename method (copy paste error) 2024-07-08 12:14:03 +02:00
ElementBot 3a91b4f39d Sync Strings (#3156)
Co-authored-by: bmarty <3940906+bmarty@users.noreply.github.com>
2024-07-08 07:34:58 +00:00
renovate[bot] 68efc918ba Update dependency org.matrix.rustcomponents:sdk-android to v0.2.31 (#3145)
* Update dependency org.matrix.rustcomponents:sdk-android to v0.2.31

* Use new Rust client side sorting API

* Make `RoomListEntriesUpdate.describe()` an extension function

* Remove `RoomListSummary.Filled` and `RoomListSummary.Empty`

* Fix icon sizes to pass the lint checks

* 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>
2024-07-05 15:25:42 +00:00
jmartinesp dabaa2d265 Sync Strings from Localazy 2024-07-03 11:21:27 +00:00
Jorge Martin Espinosa b0cebf5ca0 Improve screenshot testing with ComposablePreviewScanner (#3125)
* Use ComposablePreviewScanner to rework how screenshot testing works
* Add test sharding
* Update screenshots
* Fixes for Element Gallery

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
Co-authored-by: Benoit Marty <benoit@matrix.org>
2024-07-03 13:05:06 +02:00
bmarty 32c5da898b Sync Strings from Localazy 2024-07-01 00:22:10 +00:00
Benoit Marty f6fe030d6a Merge pull request #3053 from element-hq/feature/bma/callSettings
Alert for incoming call even if notifications are disabled - WAITING FOR FINAL PRODUCT DECISION
2024-06-28 14:21:23 +02:00
ElementBot fd6bcb7857 Sync Strings (#3077)
Co-authored-by: bmarty <3940906+bmarty@users.noreply.github.com>
2024-06-24 09:29:35 +02:00
Benoit Marty 7d0323d708 Create extension RoomSummaryDetails.getAvatarData to avoid code duplication. 2024-06-20 16:16:55 +02:00
Benoit Marty 33c76dfd2d Use extension MatrixUser.getAvatarData and fix compilation issue. 2024-06-20 16:06:33 +02:00
Benoit Marty ad02e05bf4 Use heroes to render room avatars 2024-06-20 13:10:25 +02:00
Benoit Marty a0f21d0b63 Add enum EditProfileDetails instead of reusing RoomHeader 2024-06-20 11:43:15 +02:00
Benoit Marty 7d57144384 Add preview for disabled notifications. 2024-06-19 11:09:57 +02:00
Benoit Marty f09b77f72f Update test after merging develop. 2024-06-18 10:33:07 +02:00
Benoit Marty 69dbb08034 Merge branch 'develop' into feature/bma/fixFdroidNotification 2024-06-18 10:28:04 +02:00
Benoit Marty 849f64f4aa Merge pull request #3044 from element-hq/feature/bma/testDefaultClearCacheUseCase
Add test on DefaultClearCacheUseCase
2024-06-18 10:27:45 +02:00
Jorge Martin Espinosa b741c32e91 Add full screen intent permissions banner (#3024)
* Add full screen intent permissions banner, creating `:libraries:fullscreenintent` modules.
* Add it to notification settings too:
    - Create `libraries:fullscreenintent` modules for the permission presenter and associated data.
    - Add the presenter and states to `NotificationSettingsPresenter` and `NotificationSettingsView`.
* Use the right API to check for full screen intent permissions.
- Use the right package name for `:libraries:permission` contents.
* Fix broken tests (flaky?)
* Ignore coverage verification for fake and small presenters

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-06-18 07:41:10 +00:00
Benoit Marty 9349f1bf6a Remove trailing line. 2024-06-17 18:58:07 +02:00
Benoit Marty e12f723ff7 Fix test compilation issue. 2024-06-17 17:38:10 +02:00
Benoit Marty 1f8b525548 Fix back navigation issue, when opening directly the notification troubleshoot screen. 2024-06-17 16:53:21 +02:00
Benoit Marty 5180ce388c Add a shortcut to navigate to the notification settings in case of error. 2024-06-17 16:29:10 +02:00
Benoit Marty b916aee958 Add test on DefaultClearCacheUseCase 2024-06-17 16:01:56 +02:00
Benoit Marty 4de151cae8 Rename member. 2024-06-17 15:18:22 +02:00
Benoit Marty 7d1e841c68 Rename member. 2024-06-17 14:48:52 +02:00
Benoit Marty abc0e7edf7 Move setIgnoreRegistrationError call. 2024-06-17 14:48:51 +02:00
Benoit Marty 64930e4435 Add ability to not show the pusher registration again. 2024-06-17 11:38:32 +02:00
bmarty 9288b90ac6 Sync Strings from Localazy 2024-06-17 00:23:40 +00:00