Commit graph

3501 commits

Author SHA1 Message Date
ganfra
c30398ccc7 Pinned messages: clean code 2024-09-04 14:27:18 +02:00
ganfra
12e7e05551
Merge branch 'develop' into feature/fga/pinned_messages_list 2024-09-04 14:11:53 +02:00
ganfra
51f7599c38 Pinned messages list : fix all tests after changes 2024-09-04 12:09:17 +02:00
ganfra
c6e7e7d09e Pinned messages : add comment on PinnedEventsTimelineProvider 2024-09-04 11:42:54 +02:00
ganfra
9ed9559191 Pinned messages list : handle error state (shouldn't really happen) 2024-09-04 11:42:04 +02:00
ganfra
cd8a708739 Pinned messages list : add some ui tests 2024-09-04 11:11:04 +02:00
Jorge Martin Espinosa
2c8b0d0b95
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]
9fb82a1e86
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
ganfra
fad17f05e3 Pinned messages list : fix and add tests 2024-09-03 18:21:42 +02:00
ganfra
8c0a0d886c Pinned messages list : add loading for pinned messages count and add tests 2024-09-03 14:36:35 +02:00
Benoit Marty
99f48723d4
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
91a81d18e4
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
ganfra
e840581247 Pinned messages list : navigation from room details 2024-09-03 09:41:30 +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
ganfra
4d0e5447a1 Pinned events : add debounce on list 2024-09-02 14:06:05 +02:00
Benoit Marty
941c762cff
Merge pull request #3373 from element-hq/sync-localazy
Sync Strings
2024-09-02 13:22:11 +02:00
Benoit Marty
1cc87cfed1 Fix typo (also fixed on Localazy). 2024-09-02 13:21:14 +02:00
Benoit Marty
c19229b313
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
b043ec8796 Remove subtitle. 2024-09-02 12:11:53 +02:00
Benoit Marty
6255a78145 App migration: also move the cache files. 2024-09-02 11:26:59 +02:00
bmarty
5ad2764402 Sync Strings from Localazy 2024-09-02 00:15:17 +00:00
Benoit Marty
c41cb33410 Provide distinct cache directory to the Rust SDK. 2024-08-30 18:36:20 +02:00
ganfra
90beb0a7f1 Pinned events : better navigation from ViewInTimeline or permalink 2024-08-30 18:28:45 +02:00
ganfra
bd327aac88 Pinned events : simplify poll content view 2024-08-30 18:27:19 +02:00
Benoit Marty
31d0621fa1
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
61f9b20554 Ensure starting PinUnlockActivity does not crash the application.
Fix regression from #3222 d4f8052696
2024-08-30 16:15:54 +02:00
ganfra
2193b9a300 Pinned events : start displaying actions in timeline 2024-08-30 15:15:22 +02: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
Benoit Marty
9134d334bb Show sign out button only at initial step. 2024-08-29 16:29:30 +02:00
Benoit Marty
f4beddef99 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
0d6b4bc3c2
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
aae44875bd Fix test. 2024-08-29 12:38:58 +02: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
a6e2a5d81f Change PinUnlockState.signOutAction type to AsyncAction. 2024-08-29 11:49:57 +02:00
Benoit Marty
1026a296e3 Make LogoutUseCase.logout return the result of the SDK method. 2024-08-29 11:47:22 +02:00
Benoit Marty
e4174b39e8 Change test name. 2024-08-29 11:13:57 +02:00
Benoit Marty
66a2f9fb48 Sync English strings. 2024-08-29 09:51:28 +02:00
Benoit Marty
dfaa350167 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
8e7d8175d7 Remove Lost your recovery key? button and the temporary screen it opened. 2024-08-29 09:40:00 +02:00
ganfra
530777a9f0 Pinned events : fix compilation 2024-08-28 12:35:22 +02:00
ganfra
f06ba8490b Pinned events : try sharing pinned events timeline instance 2024-08-28 12:35:22 +02:00
ganfra
46776a971a Pinned messages : start branching ui to the timeline 2024-08-28 12:35:22 +02:00
ganfra
44ccae3327 Pinned events : add the PinnedMessagesTimeline feature classes and branch in the navigation 2024-08-28 12:35:21 +02:00
Benoit Marty
45c216c7a3
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
c5461b669f
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
ad646c9098 Remove feature flag PictureInPicture 2024-08-27 18:41:40 +02:00
ganfra
88a581427c Rust sdk : refactor LocalSendState to use the new failure states as iOS does 2024-08-27 17:45:22 +02:00
ganfra
e5b21c389e Rust sdk : use newMessageShield state 2024-08-27 17:43:07 +02:00