Robin
6f683d3cde
refactor(tests): Accept more types for sync builder state events
...
Refactoring the test event implementation to use the From trait rather than ad-hoc methods along the way.
2025-05-30 15:32:35 +02:00
Timo
6d5ad4eddc
feat(widget-driver): Add to-device support
...
The widget Driver should be able to send and receive to-device events.
This is useful for element call encryption keys.
This PR focusses on the widget driver and machine logic. To
send/communicate the events from the widget to the driver.
It skips any encryption logic. Some of the encryption logic will be part
of crypto crate and the code in the widget driver crate should be kept
minimal once the crypto crate is ready.
---------
Co-authored-by: Valere <bill.carson@valrsoft.com >
2025-05-22 13:38:28 +02:00
Kévin Commaille
51be581d48
feat(test): Add RoomAccountDataTestEvent::MarkedUnread
...
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr >
2025-05-21 13:51:48 +02:00
Benjamin Bouvier
404dd3949f
test: remove unused helpers
2025-03-26 11:01:14 +01:00
Benjamin Bouvier
be6daa5930
test: add EventFactory::typing for typing notifications and get rid of more old cruft
2025-03-26 11:01:14 +01:00
Benjamin Bouvier
acee5415c5
test: get rid of a few global statics for read receipts event contents
2025-03-26 11:01:14 +01:00
Benjamin Bouvier
b5aa2113db
test: add a way to create ephemeral read receipts events in the EventFactory
2025-03-26 11:01:14 +01:00
Ivan Enderlin
7eae832b8c
test: set_timeline_prev_batch takes anything that implements Into<String>.
2025-02-04 19:43:38 +01:00
Damir Jelić
8f0f0fa4d4
chore(test): Don't require two room IDs in the mock_sync_room method
2024-11-12 14:51:31 +01:00
Jorge Martin Espinosa
40f4fc138b
chore(room_preview): add RoomListItem::preview_room ( #4152 )
...
This method will return a `RoomPreview` for the provided room id.
Also added `fn RoomPreview::leave()` action to be able to decline
invites or cancel knocks, since there wasn't a
`Client::leave_room_by_id` counterpart as there is for join.
The PR also deprecates `RoomListItem::invited_room`, since we have a
better alternative now.
Co-authored-by: Benjamin Bouvier <benjamin@bouvier.cc >
2024-10-25 14:33:16 +02:00
Jorge Martín
ab0494549e
sdk-ui: add Timeline::pin_event and Timeline::unpin_event
2024-07-26 14:20:53 +01:00
Stefan Ceriu
eea475854c
feat: Expose a verification state listener directly from Encryption
2024-03-12 14:36:05 +01:00
ganfra
3b20cc4444
tags: introduce a new RoomNotablesTags and methods to subscribe to changes on it.
2024-01-30 16:46:43 +01:00
Jonas Platte
254efed150
test: Rename DEFAULT_SYNC_ROOM_ID to DEFAULT_TEST_ROOM_ID
...
… and move to matrix-sdk-test's crate root.
2023-10-23 19:34:23 +02:00
Jonas Platte
3196ac53b2
test: Remove TimelineTestEvent
2023-09-27 10:06:32 +02:00
Jonas Platte
145c5078f2
test: Remove example from SyncResponseBuilder docs
...
It is only an internal utility, we can copy-paste from other tests.
2023-09-27 10:06:32 +02:00
Jonas Platte
62ecff3e1d
test: Remove outdated documentation
2023-09-27 10:06:32 +02:00
Jonas Platte
fe2e60c60d
testing: Replace TimelineTestEvent::Custom with sync_timeline_event!
2023-09-21 16:00:11 +02:00
Jonas Platte
054d26774c
testing: Generalize add_timeline_event for sync response room builders
2023-09-21 16:00:11 +02:00
Jonas Platte
82f793ec0f
testing: Rename event_builder module to sync_builder
...
It used to contain a type named EventBuilder, but that has been renamed
to SyncResponseBuilder a while ago.
2023-09-21 16:00:11 +02:00