Commit graph

926 commits

Author SHA1 Message Date
Benoit Marty
7ece687740
Merge pull request #3574 from element-hq/feature/bma/improveMediaModel
Clarify model for Event with attachment
2024-10-16 14:57:05 +02:00
Jorge Martin Espinosa
22f79f2726
Remove unused RoomSummary cache (#3647) 2024-10-10 15:50:28 +00:00
ganfra
a3db4b2043
Merge pull request #3631 from element-hq/feature/fga/rework_room_summary
Rework room summary
2024-10-09 11:44:45 +02:00
ganfra
348c84b8b9 misc : rework getRoomInfoFlow (by using getRoomSummaryFlow) 2024-10-08 21:36:38 +02:00
ganfra
eeb6b6f4bf misc : remove direct usage of RoomSummary in UI and let RoomSummary use RoomInfo. 2024-10-08 21:34:34 +02:00
Benoit Marty
920dc2b0d7 Improve mapping regarding filename, caption and formattedCaption 2024-10-08 17:12:48 +02:00
Benoit Marty
0099777360 Fix code quality. 2024-10-08 11:09:46 +02:00
Benoit Marty
bc62f8cfce Fix compilation issues. 2024-10-08 10:27:07 +02:00
Benoit Marty
d9fb0cf656 Pin user identity. 2024-10-07 22:19:13 +02:00
Benoit Marty
c69e5f47e5 Render PinViolation above the composer. 2024-10-07 22:18:32 +02:00
Benoit Marty
23c0dc10cd ... and fix the test. 2024-10-07 17:31:55 +02:00
Benoit Marty
9e32463446 Fix compilation issue in RustMatrixClientFactoryTest... 2024-10-07 17:30:36 +02:00
Valere
041f1b4a06 crypto: Use OnlySigned isolation flag to setup decryption trust req. 2024-10-04 17:07:15 +02:00
Benoit Marty
05a6a3b3ce
Merge pull request #3604 from element-hq/feature/bma/fixBuildWithLocalSdk
Fix building the app using a local SDK.
2024-10-04 15:02:25 +02:00
Valere
2230163bbe dep | Adapt rust-sdk, rename PreviouslyVerified to VerificationViolation 2024-10-04 12:37:33 +02:00
Benoit Marty
1e91e8b356 Fix building the app using a local SDK.
Inject `AnalyticsService` instead of `UtdTracker` since `UtdTracker` requires access to `org.matrix.rustcomponents.sdk.UnableToDecryptDelegate`
2024-10-04 12:01:30 +02:00
ganfra
adc03c9676 timeline : improve jumpTo precision (introducing animateScrollToItemCenter) 2024-10-03 15:33:03 +02:00
ganfra
1e4c30c569 timeline : makes typingNotification item part of the timelineItems. 2024-10-03 13:14:14 +02:00
Benoit Marty
55c11e966e Fix a naming issue. 2024-10-02 21:28:35 +02:00
Benoit Marty
ed1cb24c28 Fix tests, replace outdated SDK fixtures 2024-10-02 21:27:10 +02:00
Benoit Marty
29356b96c1
Merge pull request #3554 from element-hq/feature/bma/testEmptyTimeline
Add unit tests on TimelineItemsSubscriber
2024-10-02 14:04:48 +02:00
renovate[bot]
3001efb525
Update dependency org.matrix.rustcomponents:sdk-android to v0.2.50 (#3565)
* Adapt to changes in the SDK

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

* Use lambda instead of overriding the `EventDebugInfoProvider` interface

* Fix test proposal.
We may find a better way to compare data class instance if we need to do more comparison in the future...

---------

Co-authored-by: Jorge Martín <jorgem@element.io>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Benoit Marty <benoit@matrix.org>
2024-10-01 09:44:52 +02:00
Jorge Martin Espinosa
eeec7cc785
Centralise the DI code generation logic (#3562)
* Create Anvil extension helper

* Use the helper everywhere
2024-09-30 12:20:28 +00:00
Benoit Marty
f89463c3a1 Remove runCancellableScopeTest and runCancellableScopeTestWithTestScope, we can use TestScope.backgroundScope instead. 2024-09-27 18:37:16 +02:00
Benoit Marty
b9c9706c48 Use backgroundScope for TimelineItemsSubscriberTest 2024-09-27 18:30:05 +02:00
Benoit Marty
7628d480a8 Fix quality issues. 2024-09-27 17:40:30 +02:00
Benoit Marty
b7c6369ebf Add test on TimelineItemsSubscriber. 2024-09-27 17:06:48 +02:00
Benoit Marty
738ac54be5 Extract createMatrixTimelineDiffProcessor from class. 2024-09-27 14:13:52 +02:00
Valere
10014d3936 rename invisible flag to onlySignedDeviceIsolation 2024-09-25 23:02:01 +02:00
ganfra
db569cbcbe timeline : makes sure to emit empty list if initial reset has no item. 2024-09-25 15:50:11 +02:00
Benoit Marty
53fc2f3dfe Remove the no needed launch. 2024-09-24 21:29:25 +02:00
Benoit Marty
b6fd46ece6 Add some missing runCatching to protect innerRoom access.
May fix https://sentry.tools.element.io/organizations/element/issues/533226/events/e22d3a80ab204ce392e65c989c2753ac/
2024-09-24 16:13:39 +02:00
Benoit Marty
d14361760b No need to launch a coroutine to send the first value. 2024-09-24 16:01:58 +02:00
Benoit Marty
1309d04649 mxCallbackFlow already contains a tryOrNull wrapper around the block, so not need to add an extra one.
Also the block can return a non-null TaskHandle.
2024-09-24 15:59:48 +02:00
renovate[bot]
410f879c9f
Update dependency net.java.dev.jna:jna to v5.15.0 2024-09-24 07:17:33 +00:00
Jorge Martin Espinosa
16d5be3ed5
Fix pinned events banner reappearing when loading (#3519)
* Fix pinned events banner reappearing when loading.

Make the `RustTimelineItem.timelineItems` property a `SharedFlow` so we don't always incorrectly load an empty state by default.
2024-09-23 15:19:29 +02:00
Benoit Marty
8c5e682f1b Cleanup 2024-09-19 20:14:58 +02:00
Benoit Marty
98cfa25d5b Add test on RustPushersService 2024-09-19 20:08:07 +02:00
Benoit Marty
8439c104fe Add test on AccountManagementAction.toRustAction() 2024-09-19 19:57:52 +02:00
Benoit Marty
f209eb27ac Add test on RustNotificationSettingsService 2024-09-19 19:55:27 +02:00
Benoit Marty
6fa585f4c8 Add unit test on RustNotificationService
And fix mapping error.
2024-09-19 19:43:40 +02:00
Benoit Marty
145c40ddfa Add unit test on ExternalSession.toSessionData 2024-09-19 17:35:40 +02:00
Benoit Marty
bfaa9f843c Add unit test on HomeserverLoginDetails.map() 2024-09-19 17:27:55 +02:00
Benoit Marty
e117b74b0b Fix test 2024-09-19 17:21:26 +02:00
Benoit Marty
8127aa6351 Cleanup constructor and avoid creating many mapper instances 2024-09-19 17:15:52 +02:00
Benoit Marty
de7d93e37d Add test on RustRoomListService 2024-09-19 16:41:19 +02:00
Benoit Marty
1fd1f016be Add test on RoomListFactory 2024-09-19 16:23:39 +02:00
Benoit Marty
b67c428793 Add test on RoomDirectorySearchProcessor
Give the responsibility to the RoomDirectorySearchProcessor to create the `MutableSharedFlow` since it requires a replayCache to work properly.
2024-09-19 16:04:31 +02:00
Benoit Marty
d1be4349f0 Add test on RustRoomDirectoryList 2024-09-19 15:40:25 +02:00
Benoit Marty
a7d4babf48 Inject constructor 2024-09-19 15:16:19 +02:00