Commit Graph

2967 Commits

Author SHA1 Message Date
Benoit Marty
2b016227e9 Migrate license to AGPL.
Run script `uv run license-editor --repository ../element-x-android`
2024-09-06 17:19:19 +02:00
ganfra
e5c81db224 Merge pull request #3392 from element-hq/feature/fga/pinned_messages_list
[Feature] Pinned messages list
2024-09-06 16:32:44 +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
ganfra
a37a6d249f Pinned messages list : improve and fix code after PR review. 2024-09-05 17:40:50 +02:00
ganfra
23534e6595 Merge pull request #3393 from element-hq/feature/fga/update_rust_sdk_0.2.42
Rust sdk : update to 0.2.42
2024-09-04 18:26:38 +02:00
Benoit Marty
249e6e2925 Merge pull request #3388 from element-hq/feature/bma/pushEndpoint
Unified push endpoint: do not fallback to default endpoint in case of failure and add troubleshoot test.
2024-09-04 18:19:34 +02:00
ganfra
4fe142c624 Rust sdk : update to 0.2.42 2024-09-04 16:37:46 +02:00
ganfra
ff3646ead0 Pinned messages: clean code 2024-09-04 14:27:18 +02:00
ganfra
9936dbc464 Merge branch 'develop' into feature/fga/pinned_messages_list 2024-09-04 14:11:53 +02:00
Benoit Marty
7db5ac8195 Fix the test according to the behavior change. 2024-09-04 12:23:52 +02:00
ganfra
5d18b1a8fa Pinned messages list : fix all tests after changes 2024-09-04 12:09:17 +02:00
Benoit Marty
264d1bc694 Let UnifiedPushProvider use UnifiedPushCurrentUserPushConfigProvider 2024-09-04 11:42:40 +02:00
Benoit Marty
3e74fa05d7 Fix injection issue. 2024-09-04 11:31:46 +02:00
Benoit Marty
22f9e5515c Fix quality issue. 2024-09-04 11:16:20 +02:00
Benoit Marty
35b019318e Imporve logs. 2024-09-04 11:12:21 +02:00
Benoit Marty
90352bd1ad Remove const val PUSH_GATEWAY_PATH, it makes the code more complex for no added value. 2024-09-04 11:09:27 +02:00
Benoit Marty
6eb5610bcc Add missing test on reset methods. 2024-09-04 10:57:14 +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
Benoit Marty
0423c36e08 Always use the custom url, even if no Matrix gateway is detected. 2024-09-04 10:48: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
Jorge Martin Espinosa
08d05647af Make pinned events required state in SlidingSync (#3385)
This is needed to always have the pinned events of a room as soon as we open it.
2024-09-03 17:44:48 +02:00
Benoit Marty
0e5ecf2d07 Merge pull request #3366 from element-hq/feature/bma/fixAvatarLoading
Fix avatar sometimes not loading
2024-09-03 10:47:53 +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
b062431f1b Fix test compilation issue. 2024-09-03 10:01:45 +02:00
Jorge Martin Espinosa
9b27547196 Use the right colors for @room mention pills (#3376)
* `@room` mentions the current user, so it should use the same colors as an explicit mention to them

* Update screenshots

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-09-02 15:14:54 +00:00
Benoit Marty
8213b0a980 Change the way we do not delete the crypto database. 2024-09-02 11:29:44 +02:00
bmarty
39ef8b38bb Sync Strings from Localazy 2024-09-02 00:15:17 +00:00
Benoit Marty
40832d7815 Introduce SessionPathsFactory. 2024-08-30 18:42:00 +02:00
Benoit Marty
93cace6954 Provide distinct cache directory to the Rust SDK. 2024-08-30 18:36:20 +02:00
ganfra
3cc749dd0a Pinned events : start displaying actions in timeline 2024-08-30 15:15:22 +02:00
Benoit Marty
53dafc706c AvatarData.toMediaRequestData() can be internal. 2024-08-30 13:12:03 +02:00
Benoit Marty
2b201477da CoilMediaFetcher.mediaData cannot be null. 2024-08-30 13:07:39 +02:00
Benoit Marty
cb7ca7c575 Log more errors. 2024-08-30 13:06:26 +02:00
Benoit Marty
1949c2ec0b Rework: extract AvatarFactory and MediaRequestDataFactory from CoilMediaFetcher 2024-08-30 12:57:49 +02:00
Benoit Marty
82fa369c8b Merge pull request #3320 from element-hq/feature/bma/cleanNotificationOfRedactedEvent
Redact message on displayed notification
2024-08-29 14:46:13 +02:00
Benoit Marty
8441795e0d Use let. 2024-08-29 11:07:43 +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
ganfra
879b842a91 Fix maplibre annotation plugins dependency 2024-08-28 16:50:51 +02:00
Benoit Marty
ce1b329229 Fix formatting error 2024-08-28 15:43:42 +02:00
ganfra
0832fb9f2f Timeline : add a mode to differentiate between live/focused/pinned 2024-08-28 12:35:21 +02:00
Benoit Marty
7aa35bac2b Add missing test on null redacted eventId. 2024-08-28 11:32:12 +02:00
Benoit Marty
4b90f8592c Add test on DefaultOnRedactedEventReceived 2024-08-28 11:29:20 +02:00
Benoit Marty
e38d882d42 Improve FakeActiveNotificationsProvider. 2024-08-28 11:06:26 +02:00
Benoit Marty
0037552f77 Remove unused method ActiveNotificationsProvider.getAllNotifications() 2024-08-28 10:55:22 +02:00
Benoit Marty
3b12d54dad Cleanup notification for redacted event. 2024-08-28 10:29:01 +02:00
Benoit Marty
7563597f5a NotifiableEvent does not need to be Serializable anymore. 2024-08-28 10:22:12 +02:00
Benoit Marty
362334b1cf Remove usage of with(notificationDataFactory) for code clarity. 2024-08-28 10:22:12 +02:00
Benoit Marty
20df9647d3 Format file 2024-08-28 10:22:11 +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