Commit Graph

3499 Commits

Author SHA1 Message Date
Benoit Marty
8ce1687bf5 var -> val for lambda 2024-09-06 14:46:28 +02:00
Benoit Marty
e4a2bfa9f0 Use the local val instead. 2024-09-06 13:54:15 +02:00
Benoit Marty
8705229930 Fix test compilation issue. 2024-09-06 13:52:43 +02:00
Benoit Marty
9693a248f7 Add missing test for AppMigration06 2024-09-06 11:51:59 +02:00
Benoit Marty
c51d098679 Add missing test for AppMigration05 2024-09-06 11:41:13 +02:00
Benoit Marty
b00061263a Do not perform any migration on fresh application installation. 2024-09-06 10:52:39 +02:00
Benoit Marty
76e34ae798 Add an application migration to delete the old log files. 2024-09-06 09:31:14 +02:00
Jorge Martin Espinosa
d463b6ba4a Fix Element Call closing automatically on API 34 (#3402)
* Fix Element Call closing automatically on API 34

It seems like registering a user leave hint listener way too early was causing the activity to try to enter PiP erroneously and that led to the activity closing instead.
2024-09-05 14:28:05 +00:00
Benoit Marty
8cc8f1fce1 Merge pull request #3295 from frebib/feat/big-emoji
Big emoji-only messages
2024-09-04 18:36:26 +02:00
Benoit Marty
02e40a9fe0 Remove unnecessary parenthesis 2024-09-04 18:35:26 +02:00
Benoit Marty
f820adfb9a Merge pull request #3395 from element-hq/feature/bma/noDeviceVerifiedAfterRegistration
Skip device verification screen when creating a new account using OIDC
2024-09-04 18:28:30 +02:00
Benoit Marty
ec4f2dcfbf Properly skip the FTUE verification screen if verification is not needed. 2024-09-04 16:41:34 +02:00
Benoit Marty
e74b3757da Remove the migration screen. #3292 2024-09-04 12:11:31 +02:00
Jorge Martin Espinosa
4fbf98700a Make sure to save the tokens the Client might return when its session is restored (#3378)
* Use `ClientSessionDelegate` to ensure tokens are always updated.

Refreshed tokens on client restoration might not have been stored to disk if the token refresh happened before `RustMatrixClient` was built and the `ClientDelegate` was set in it.

Using `ClientSessionDelegate` should ensure the tokens refreshed callback is called at any point in time.

* Improve how assigning the Client works, fix docs

* Fix review comments
2024-09-04 10:54:31 +02:00
renovate[bot]
5ba88dc5b0 Update dependency org.matrix.rustcomponents:sdk-android to v0.2.41 (#3384)
* Introduce value class UniqueId.

* Allow reactions on non-sent Event, the SDK can now handle it.

Also the SDK will manage local echo for reactions.

* Update dependency org.matrix.rustcomponents:sdk-android to v0.2.41

* Fixes after SDK upgrade:

- Use `ClientBuilderSlidingSync` to set `SlidingSyncVersionBuilder` in `RustMatrixClientFactory`.
- `Room.toggleReaction(emoji: String, eventId: EventId)` is now `Room.toggleReaction(emoji: String, uniqueId: UniqueId)`, since reactions can now be applied to local echoes too in the SDK.

* Rename exception case

* Fix wrong error case being used in test

---------

Co-authored-by: Benoit Marty <benoit@matrix.org>
Co-authored-by: Benoit Marty <benoitm@matrix.org>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
2024-09-03 20:09:33 +02:00
Benoit Marty
200c1ae5c5 Merge pull request #3381 from element-hq/feature/bma/ossLicense
Replace OSS licenses plugin with Licensee and some manually done UI.
2024-09-03 10:40:58 +02:00
Benoit Marty
3efb371d34 Merge pull request #3370 from element-hq/feature/bma/cacheFile
Provide distinct cache directory to the Rust SDK.
2024-09-03 10:27:47 +02:00
Benoit Marty
b9169e6c76 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
Benoit Marty
9c21a96d3d Merge pull request #3373 from element-hq/sync-localazy
Sync Strings
2024-09-02 13:22:11 +02:00
Benoit Marty
6c306ead08 Fix typo (also fixed on Localazy). 2024-09-02 13:21:14 +02:00
Benoit Marty
b6c457fca4 Merge pull request #3369 from element-hq/feature/bma/fixPinLockCrash
Ensure starting PinUnlockActivity does not crash the application.
2024-09-02 12:28:36 +02:00
Benoit Marty
5995212777 Remove subtitle. 2024-09-02 12:11:53 +02:00
Benoit Marty
06f0fd1f64 App migration: also move the cache files. 2024-09-02 11:26:59 +02:00
bmarty
39ef8b38bb Sync Strings from Localazy 2024-09-02 00:15:17 +00:00
Benoit Marty
93cace6954 Provide distinct cache directory to the Rust SDK. 2024-08-30 18:36:20 +02:00
Benoit Marty
9f67c65c2c Merge pull request #3360 from element-hq/feature/bma/sessionVerificationBannerIsBack
Add banner entry point to set up recovery
2024-08-30 16:56:11 +02:00
Benoit Marty
d6d7b100ec Ensure starting PinUnlockActivity does not crash the application.
Fix regression from #3222 fc6436dada
2024-08-30 16:15:54 +02:00
Benoit Marty
022a2fe2bd Increase test coverage of securityBannerState() 2024-08-30 09:15:53 +02:00
Benoit Marty
f0c2229621 Add banner entry point to set up recovery 2024-08-29 18:34:55 +02:00
Benoit Marty
a645e9762f Show sign out button only at initial step. 2024-08-29 16:29:30 +02:00
Benoit Marty
20a8862b3f Add a way to sign out when the user is asked to verify the session. 2024-08-29 15:56:08 +02:00
Benoit Marty
5b8e4b568f Merge pull request #3355 from element-hq/feature/bma/resetIdentityIteration2
[Identity reset] Remove instruction to reset identity on another client.
2024-08-29 13:17:13 +02:00
Benoit Marty
f0952240a0 Fix test. 2024-08-29 12:38:58 +02:00
Benoit Marty
6657ebf42a Provide dark theme parameter. 2024-08-29 12:23:39 +02:00
Benoit Marty
fae47143f1 Ensure success logout url is opened in all cases. 2024-08-29 12:16:38 +02:00
Benoit Marty
ef62d56c9a Change PinUnlockState.signOutAction type to AsyncAction. 2024-08-29 11:49:57 +02:00
Benoit Marty
329c0670ed Make LogoutUseCase.logout return the result of the SDK method. 2024-08-29 11:47:22 +02:00
Benoit Marty
b888aa30ae Change test name. 2024-08-29 11:13:57 +02:00
Benoit Marty
1302d2d60d Sync English strings. 2024-08-29 09:51:28 +02:00
Benoit Marty
b4e9799fec Better handling on null reset handler.
This is not an error, but in this case, the reset identity is successful.
2024-08-29 09:41:13 +02:00
Benoit Marty
8408c7db2d Remove Lost your recovery key? button and the temporary screen it opened. 2024-08-29 09:40:00 +02:00
Benoit Marty
9939c43f36 Merge pull request #3343 from element-hq/renovate/org.matrix.rustcomponents-sdk-android-0.x
Update dependency org.matrix.rustcomponents:sdk-android to v0.2.40
2024-08-28 10:21:21 +02:00
Benoit Marty
1eac7e6fa3 Merge pull request #3337 from SpiritCroc/stuck-login
Fix login navigation getting stuck when the app was compiled with no-op analytics provider
2024-08-28 09:56:44 +02:00
Benoit Marty
edd0700bf8 Remove feature flag PictureInPicture 2024-08-27 18:41:40 +02:00
ganfra
18959a930f Rust sdk : refactor LocalSendState to use the new failure states as iOS does 2024-08-27 17:45:22 +02:00
ganfra
57c6abfe47 Rust sdk : use newMessageShield state 2024-08-27 17:43:07 +02:00
Benoit Marty
0c99c71de5 Merge pull request #3334 from element-hq/feature/bma/pipCallApi
Use new functions exposed by Element Call about PiP
2024-08-26 18:00:17 +02:00
Benoit Marty
0d576a9f03 Rename PipActivity to PipView 2024-08-26 17:15:32 +02:00
Benoit Marty
f6e864f520 Avoid keeping a reference to the eventSink in a separate value 2024-08-26 17:11:41 +02:00
Benoit Marty
d626362be1 Rename WebPipApi to PipController 2024-08-26 16:50:55 +02:00