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
1180c6aef9
feat: add integration test for fetch_members causing UTDs 🧪
2023-09-26 12:33:41 +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
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