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
Alfonso Grillo
b248aa9862
ffi: Add push notification support for unstable m.poll.start
2023-09-26 10:38:24 +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
dependabot[bot]
0ae6f740b9
chore(deps): bump aes-gcm from 0.10.2 to 0.10.3
...
Bumps [aes-gcm](https://github.com/RustCrypto/AEADs ) from 0.10.2 to 0.10.3.
- [Commits](https://github.com/RustCrypto/AEADs/compare/aes-gcm-v0.10.2...aes-gcm-v0.10.3 )
---
updated-dependencies:
- dependency-name: aes-gcm
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-25 11:38:08 +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
579f59c54b
ffi: Update send_reply to not make unnecessary network requests
...
… and add Room::get_event_timeline_item_by_event_id so send_reply can be
called more easily by EX-iOS given its code structure.
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
454304a20d
Enable eyeball's tracing feature
2023-09-21 19:12:01 +02:00
Marco Romano
bd18c373fe
Workaround uniffi kotlin bug with empty structs
...
Adds a dummy fuield to `UnstableVoiceContent`, otherwise uniffi
will generate an empty Kotlin data class which breaks compilation
(Kotlin data classes must have at least 1 field).
Upstream bug: https://github.com/mozilla/uniffi-rs/issues/1760
2023-09-21 14:28:55 +00: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
054d26774c
testing: Generalize add_timeline_event for sync response room builders
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
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
Ivan Enderlin
cce8698e6e
Merge pull request #2597 from Hywan/fix-base-poll-unstable-ruma-feature
2023-09-21 14:00:55 +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
77d6c3144e
Merge pull request #2581 from Hywan/feat-ffi-room-avatar-image-info
2023-09-21 12:24:02 +02:00
Ivan Enderlin
9f4b2bec05
fix(cargo): Enable unstable-msc3381 on ruma.
...
Without this feature:
```sh
$ cargo check -p matrix-sdk --features experimental-sliding-sync
Checking matrix-sdk-base v0.6.1 (/Users/hwhost/Development/Element/matrix-rust-sdk/crates/matrix-sdk-base)
error[E0433]: failed to resolve: could not find `poll` in `events`
--> crates/matrix-sdk-base/src/latest_event.rs:7:5
|
7 | poll::unstable_start::SyncUnstablePollStartEvent, room::message::SyncRoomMessageEvent,
| ^^^^ could not find `poll` in `events`
error[E0599]: no variant or associated item named `UnstablePollStart` found for enum `AnySyncMessageLikeEvent` in the current scope
--> crates/matrix-sdk-base/src/latest_event.rs:40:68
|
40 | AnySyncTimelineEvent::MessageLike(AnySyncMessageLikeEvent::UnstablePollStart(poll)) => {
| ^^^^^^^^^^^^^^^^^ variant or associated item not found in `AnySyncMessageLikeEvent`
```
With the feature, everything goes well.
2023-09-21 11:41:02 +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
0989dd7fb7
feat(ui): Add the none filter
...
feat(ui): Add the `none` filter
2023-09-21 10:20:07 +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
424135b831
fix(ffi): RoomListItem::full_room is now async
...
fix(ffi): `RoomListItem::full_room` is now `async`
2023-09-21 09:55:24 +02:00
Ivan Enderlin
7fc77a2d7e
fix(ffi): RoomListItem::full_room is now async.
...
Because it creates a bug on iOS when using `RUNTIME.block_on` here.
This patch also adds `full_room_blocking` temporarily for Kotlin.
2023-09-21 09:35:16 +02:00
Ivan Enderlin
ce2bac6818
feat(ffi): Add RoomListEntriesDynamicFilterKind::None.
2023-09-21 09:32:12 +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