Jonas Platte
88194b6828
ui: Remove outdated documentation
2023-09-26 15:29:23 +02:00
Daniel Abramov
a1d67206b6
sdk(widget): temporarily supress dead code warning
2023-09-26 13:19:38 +02:00
Daniel Abramov
d017bab144
sdk(widget): add sans-io client api impl skeleton
2023-09-26 13:19:38 +02:00
Benjamin Bouvier
43723c88ec
feat: add unit tests 🧪
2023-09-26 12:33:41 +02:00
Benjamin Bouvier
cb14813f84
chore: address review comments
2023-09-26 12:33:41 +02:00
Benjamin Bouvier
e9362f75f2
chore: fix test that was affected by the issue
...
An encryption state request was failing, but before the patch, subsequent
requests would end up in success, while this wasn't the case. The new failure
introduced by this patch was a real one, because the encryption state was
not mocked as part of this test (which tries to send a message to a homeserver).
2023-09-26 12:33:41 +02:00
Benjamin Bouvier
502ecfa636
chore: get rid of the outer pinned box, weeeee
2023-09-26 12:33:41 +02:00
Benjamin Bouvier
928be57666
chore: polish DeduplicatedRequestHandler API
2023-09-26 12:33:41 +02:00
Benjamin Bouvier
f5521e9e1c
feat/fix: also correctly deduplicate preshare_room_key
2023-09-26 12:33:41 +02:00
Benjamin Bouvier
3aa5d12ab7
feat/fix: implement DeduplicatedRequestHandler + use it for encryption_state_request
2023-09-26 12:33:41 +02:00
Benjamin Bouvier
e9d6351471
fix: also check the result of base::Client::receive_members
2023-09-26 12:33:41 +02:00
Benjamin Bouvier
120ac7150c
reformat: no else after return
2023-09-26 12:33:41 +02:00
Benjamin Bouvier
2a235d8ea6
fix: signal that a concurrent request failed to the caller, instead of assuming it succeeded
2023-09-26 12:33:41 +02:00
Benjamin Bouvier
a08327907c
fix: don't cause that any /members request following a failed one result in immediate success
2023-09-26 12:33:41 +02:00
Jonas Platte
a3799190d4
ui: Remove sender information from logs where it's not relevant
2023-09-26 11:26:25 +02:00
Jonas Platte
e8528926be
ui: Move debug-logging code out of main event handler logic
2023-09-26 11:26:25 +02:00
Jonas Platte
f47b7f02cc
Use as_variant macro in more cases
2023-09-26 10:14:04 +02:00
Jonas Platte
6e15e34700
Use bool::then where applicable
2023-09-26 10:14:04 +02:00
Jonas Platte
1f08e22d0d
crypto: Separate module declarations and reexports from imports
2023-09-26 10:14:04 +02:00
Jonas Platte
f2c569440e
ui: Remove transaction ID parameter on Timeline methods
...
There is no reason for it to be configurable in the high-level API,
since the timeline manages local echoes automatically.
2023-09-25 16:50:59 +02:00
Jonas Platte
753793c451
ui: Add a test for redacting a TimelineItemContent::MembershipChange
2023-09-25 14:27:50 +02:00
Jonas Platte
c791fd6f1d
ui: Move m.room.message specific content types into new module
...
`content.rs` was approaching 1K lines, which is a lot for a single file.
2023-09-25 14:27:50 +02:00
Jonas Platte
8e2ef9b2d0
ui: Move reaction types out of event_item::content
...
… into their own submodule.
2023-09-25 14:27:50 +02:00
Jonas Platte
7213cfe152
ui: Add a test for Timeline::send_reply
2023-09-25 11:26:51 +02:00
Jonas Platte
cb8c71ad68
ffi: Add EventTimelineItem::can_be_replied_to
2023-09-25 11:26:51 +02:00
Jonas Platte
7430201f56
ui: Add highlevel API for replying
2023-09-25 11:26:51 +02:00
Jonas Platte
dd7b3ab7d7
ui: Add timeline::error module
2023-09-25 11:26:51 +02:00
Benjamin Bouvier
e8624706d4
logs(sliding sync): don't accumulate room ids when computing limited
2023-09-22 12:05:58 +02:00
Kévin Commaille
d4a800aadc
base: Small test code fix
...
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr >
2023-09-22 10:54:09 +02:00
Kévin Commaille
9b732e1895
base: Ensure room name is not empty
...
Ruma used to handle this during deserialization when the field was
an Option.
Especially meaningful when computing the room name, where
an empty string means the name is not set.
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr >
2023-09-22 10:54:09 +02:00
Jonas Platte
ff7aa63c5c
ui: Ignore flaky test
2023-09-21 19:12:01 +02:00
Jonas Platte
fd822fc683
testing: Move last event creation code from TestTimeline to EventBuilder
2023-09-21 16:00:11 +02:00
Jonas Platte
5cf3c1e731
testing: Use EventBuilder in timeline teply integration tests
2023-09-21 16:00:11 +02:00
Jonas Platte
37912a1909
testing: Update EventBuilder method names for clarity
2023-09-21 16:00:11 +02:00
Jonas Platte
c89b38b19f
testing: Update EventBuilder::make_message_event_with_id argument order
2023-09-21 16:00:11 +02:00
Jonas Platte
2376f16214
testing: Change make_message_event_with_id to take event_id by reference
2023-09-21 16:00:11 +02:00
Jonas Platte
5d5f5e18de
testing: Move ALICE, BOB, CAROL statics to test crate
2023-09-21 16:00:11 +02:00
Jonas Platte
a5a9940ad9
testing: Extract EventBuilder out of TestTimeline
2023-09-21 16:00:11 +02:00
Jonas Platte
fe2e60c60d
testing: Replace TimelineTestEvent::Custom with sync_timeline_event!
2023-09-21 16:00:11 +02:00
Jonas Platte
c8a4bc799b
testing: Add sync_timeline_event macro for more type safety in tests
2023-09-21 16:00:11 +02:00
Ivan Enderlin
b495988424
fix(cargo): Move the unstable-msc3381 feature to matrix-sdk-base.
2023-09-21 13:19:10 +02:00
Ivan Enderlin
2ef05eb464
feat(sdk): Remove SlidingSyncList::room_list_filtered_stream
...
feat(sdk): Remove `SlidingSyncList::room_list_filtered_stream`
2023-09-21 10:31:20 +02:00
Ivan Enderlin
3d8bdba268
feat(sdk): Remove SlidingSyncList::room_list_filtered_stream.
...
This patch removes `SlidingSyncList::room_list_filtered_stream.
Of course, the only place where it was used,
`RoomList::entries_with_dynamic_adapters` now use `.filter` from
`VectorSubscriberExt`. It's basically less code.
2023-09-21 10:17:06 +02:00
Ivan Enderlin
ef8c82113d
test(ui): Test the none filter in real life.
2023-09-21 09:32:12 +02:00
Ivan Enderlin
e91f170589
feat(ui): Add the none filter.
...
It's the opposite of the `all` filter. This one rejects all entries.
2023-09-21 09:32:12 +02:00
Ivan Enderlin
95e8f49afc
test(ui): Test an empty pattern for filters.
2023-09-21 09:32:12 +02:00
Jonas Platte
1a15802201
Upgrade Ruma
2023-09-20 14:19:06 +02:00
Marco Romano
9a0cc58e4a
Support polls as latest event of a room
2023-09-20 09:45:25 +00:00
Damir Jelić
eeb27adad2
Use the extracted ciphers for the file-based key export support
2023-09-19 15:23:46 +02:00
Damir Jelić
0c726d521b
Add a new ciphers module for AES-CTR-256 with HMAC-SHA256
...
This module is mainly extracting logic we're already using for the
file-based key exporting.
Co-authored-by: Denis Kasak <dkasak@termina.org.uk >
2023-09-19 15:23:46 +02:00