Ivan Enderlin
85b37bfcc4
chore: Remove sliding sync dead tests
...
chore: Remove sliding sync dead tests
matrix-sdk-crypto-ffi-0.3.8
2023-05-31 09:22:05 +02:00
Benjamin Bouvier
4ca8d61c56
feat(ffi): expose set_sync_mode on the sliding sync list
...
Signed-off-by: Benjamin Bouvier <public@benj.me >
2023-05-30 17:20:05 +02:00
Benjamin Bouvier
623ff6fa83
chore(sliding sync): remove useless mutex around ExtensionsConfig
...
Signed-off-by: Benjamin Bouvier <public@benj.me >
2023-05-29 17:18:42 +02:00
Benjamin Bouvier
90d7ff764c
Remove dead tests
...
Signed-off-by: Benjamin Bouvier <public@benj.me >
2023-05-29 12:46:50 +02:00
Benjamin Bouvier
ce9a079882
feat(sdk): use the builder pattern for the other sliding sync mode too
...
Signed-off-by: Benjamin Bouvier <public@benj.me >
2023-05-26 15:08:21 +02:00
Benjamin Bouvier
fa25e4d9fc
sliding sync: Rejigger the range API ( #1955 )
...
* feat: introduce SlidingSyncSelectiveModeBuilder
* feat: get rid of `CannotModifyRanges` \o/
* chore: rustfmt
* chore: remove scope in test
* chore: move request generator update to its own mod, gets rid of `set_ranges`
* chore: add comments on the request generator methods
* chore: sink one range_end definition into the match arm that matters
* ffi: remove unused `add_range` method
* test: update incorrect test expectation
* chore: make clippy happy
* address first review comments
* review: don't reuse the ranges field for two things
* chore: use a builder pattern for sliding sync selective mode
* address review comments + CI
Signed-off-by: Benjamin Bouvier <public@benj.me >
2023-05-26 13:40:46 +02:00
Damir Jelić
df6d0aaa87
Log the one-time keys we received
2023-05-26 10:34:07 +00:00
Jonas Platte
84917bb59d
Fix clippy lints
2023-05-26 12:26:00 +02:00
Jonas Platte
ebe97623aa
Upgrade Ruma
2023-05-26 12:26:00 +02:00
Damir Jelić
def53962e4
Make the withheld reason part of the error message
2023-05-25 16:57:58 +02:00
Damir Jelić
1b2ba33039
Record the sender key when decrypting room events
...
This used to be the case previously, but it seems that things got lost
when we reshuffled the code here.
2023-05-25 16:57:58 +02:00
Benjamin Bouvier
631b51f43b
chore: update sliding sync's README.md too
...
Signed-off-by: Benjamin Bouvier <public@benj.me >
2023-05-25 16:17:46 +02:00
Benjamin Bouvier
829eb30e7e
chore: get rid of SlidingSync::reset_lists as it's unused
...
Signed-off-by: Benjamin Bouvier <public@benj.me >
2023-05-25 16:17:46 +02:00
Benjamin Bouvier
8d1b3b5b73
chore: get rid of SlidingSyncList::set_ranges, replace with SlidingSyncList::set_range (singular) in testing
...
Signed-off-by: Benjamin Bouvier <public@benj.me >
2023-05-25 16:17:46 +02:00
Benjamin Bouvier
9c1919ab4c
chore: get rid of SlidingSyncListBuilder::set_range and replace it with add_range in tests
...
Signed-off-by: Benjamin Bouvier <public@benj.me >
2023-05-25 16:17:46 +02:00
Benjamin Bouvier
dbd491383f
chore: get rid of SlidingSyncListBuilder::reset_ranges
...
Signed-off-by: Benjamin Bouvier <public@benj.me >
2023-05-25 16:17:46 +02:00
Benjamin Bouvier
40a0459cb9
chore: get rid of SlidingSyncListBuilder::ranges(), replace with add_range
...
Signed-off-by: Benjamin Bouvier <public@benj.me >
2023-05-25 16:17:46 +02:00
Damir Jelić
8c9a54e6c8
Time out user/device pairs who have invalid one-time keys
2023-05-25 14:52:05 +02:00
Damir Jelić
ac816ca1c6
Fix an indentation issue
2023-05-25 14:51:25 +02:00
Damir Jelić
2c696ae210
Fix the deserialization of encrypted m.dummy events.
2023-05-25 14:51:25 +02:00
Jonas Platte
5197e263a0
Revert "bindings: Use native async support for latest_room_message"
...
This reverts commit 2660e7bcf1 .
2023-05-25 13:33:43 +02:00
Benjamin Bouvier
992b6b604b
test: address review comments + add basic tests for to-device token
...
Signed-off-by: Benjamin Bouvier <public@benj.me >
2023-05-25 11:26:32 +02:00
Benjamin Bouvier
9762c63dbc
chore: remove Observable wrappers for the position markers
...
Signed-off-by: Benjamin Bouvier <public@benj.me >
2023-05-25 11:26:32 +02:00
Benjamin Bouvier
0afe616e17
feat: put the to_device_token along the other position markers in sliding sync
...
Signed-off-by: Benjamin Bouvier <public@benj.me >
2023-05-25 11:26:32 +02:00
Benjamin Bouvier
b4c192509b
chore: remove unused FFI add_common_extensions
...
Signed-off-by: Benjamin Bouvier <public@benj.me >
2023-05-25 11:26:32 +02:00
Damir Jelić
5e3a114830
Log the message id when we share a room key
2023-05-24 12:29:15 +02:00
Damir Jelić
2e09bf63a6
Add a message id to our encrypted to-device events
2023-05-24 12:29:15 +02:00
Damir Jelić
19ca9478b7
Clean up some room key forwarding logs
2023-05-24 12:29:15 +02:00
Ivan Enderlin
17f4ba5c9b
fix(sdk): Client::sliding_sync doesn't need to be async
...
fix(sdk): `Client::sliding_sync` doesn't need to be `async`
2023-05-24 12:26:33 +02:00
Ivan Enderlin
a2a1b35622
fix(sdk): Client::sliding_sync doesn't need to be async.
...
The `Client::sliding_sync` method was declared as async. However, it's
not necessary as everything happening here is sync.
2023-05-24 11:56:38 +02:00
Ivan Enderlin
b60a317174
feat(sdk): Implement SlidingSync::stop_sync
...
feat(sdk): Implement `SlidingSync::stop_sync`
2023-05-24 11:52:19 +02:00
Jonas Platte
ac106c7059
bindings: Use native async for SessionVerificationController
2023-05-24 11:31:33 +02:00
Jonas Platte
2660e7bcf1
bindings: Use native async support for latest_room_message
2023-05-24 11:31:33 +02:00
Jonas Platte
ffc8453c63
bindings: Use async-compat tokio runtime
2023-05-24 11:31:33 +02:00
Jonas Platte
587c5b05b1
Upgrade UniFFI
2023-05-24 11:31:33 +02:00
Ivan Enderlin
728cd5db86
fix(sdk): Restore the size of the SS channel.
...
Because it doesn't solve any problem, it just postpones it, making the
whole thing more difficult to debug.
2023-05-24 11:02:06 +02:00
Ivan Enderlin
512a5e77cd
feat(sdk): Log when messages are sent internally by SlidingSync.
2023-05-24 11:01:42 +02:00
Ivan Enderlin
e9bbf366ba
chore(sdk): Simplify code.
2023-05-24 09:19:12 +02:00
Ivan Enderlin
849f83adb7
chore(sdk): Remove an allow(unused).
2023-05-24 09:06:32 +02:00
Ivan Enderlin
415778d44d
feat(ffi): Implement SlidingSync::stop_sync.
2023-05-24 09:03:03 +02:00
Ivan Enderlin
47922f7f50
test(sdk): Test SlidingSync::stop_sync_loop.
2023-05-24 08:59:28 +02:00
Ivan Enderlin
7bde2cfd4a
feat(sdk): Add log in SlidingSync when an internal message is received.
2023-05-24 08:44:51 +02:00
Ivan Enderlin
99bbf2a42b
feat(sdk): Implement SlidingSync::stop_sync.
...
In case it's not obvious to drop the `Stream` returned by
`SlidingSync::sync` immediately to “stop” the sync-loop, one can use the
new `stop_sync` method to do achieve the same result.
2023-05-24 08:42:12 +02:00
Ivan Enderlin
b8580b76f7
feat(sdk): Rename SlidingSync::stream to ::sync.
...
Because it doesn't start a stream, but a sync-loop.
2023-05-24 08:20:29 +02:00
Damir Jelić
c042e1e63c
Disable automatic-key-forwarding for the matrix-sdk-ffi bindings
...
Not completely sure why disabling this didn't work the first time. The
feature is now disabled by default in the matrix-sdk-crypto crate.
2023-05-23 16:42:34 +02:00
Damir Jelić
3db90fbe02
Use the new VerificationRequest signalling in the emoji example
2023-05-23 16:10:05 +02:00
Damir Jelić
b07718b5d5
Expose the VerificationRequest signalling and states in the main crate
2023-05-23 16:10:05 +02:00
Damir Jelić
e9c3aa1a2e
Add a state for the VerificationRequest for when a request transitions
...
The `VerificationRequest` object is used to control the flow of the
verification but only up to a certain point.
Once we start handling of different specific verification flows (i.e.
SAS or QR code verification) the `VerificationRequest` object creates a
child object of the Verification type.
This patch adds a new `VerificationRequestState` variant called
`Transitioned` which holds the child verification object as associated
data.
This makes it much simpler to go through the whole verification flow by
allowing users to just listen to the `VerificationRequest::changes()`
method.
2023-05-23 16:10:05 +02:00
Florian Renaud
2cce236f4d
feat(bindings): exposed set_name in Room
2023-05-22 17:58:14 +02:00
Jonas Platte
2f243bce55
Stop unconditionally enabling native-tls from matrix-sdk-ffi
2023-05-22 16:26:40 +02:00