Jonas Platte
a5bfab1d55
ci: Replace unmaintained actions-rs/toolchain action
...
… with dtolnay/rust-toolchain.
2023-02-10 13:58:41 +01:00
Jonas Platte
e430f65ce8
ci: Exclude Debug implementations from coverage reports
...
We don't really want to check for exact representations, and otherwise
they are really just invoked in tests that fail.
2023-02-10 13:46:00 +01:00
Jonas Platte
441626bf68
ci: Exclude uniffi-bindgen from coverage checks
2023-02-10 13:02:31 +01:00
Jonas Platte
02e51a9cb9
ci: Test sqlite crypto store in coverage check
2023-02-10 13:02:31 +01:00
Jonas Platte
4492df6fc6
test(sdk): Add a test for retrying edit decryption
2023-02-10 12:41:05 +01:00
Jonas Platte
573b672470
fix(sdk): Fix handling of UTD "insivible" events
...
(ones which don't produce a timeline item on their own)
2023-02-10 12:41:05 +01:00
Jonas Platte
fe3c73602f
refactor(sdk): Always add UTD events to the timeline
...
… as currently this is the only way decryption can be retried.
2023-02-10 12:41:05 +01:00
Jonas Platte
fd2dc18746
refactor(sdk): Retry event decryption in timeline item order
...
This works better for relations.
2023-02-10 12:41:05 +01:00
Jonas Platte
55549f61be
test(sdk): Split timeline tests into smaller modules
2023-02-10 12:41:05 +01:00
Jonas Platte
cf359dede5
chore: Upgrade rust-cache GitHub action
2023-02-10 12:16:06 +01:00
Ivan Enderlin
13f50fbf6c
fix(sdk): Remove Deref impl for SlidingSyncRoom
...
fix(sdk): Remove `Deref` impl for `SlidingSyncRoom`
2023-02-09 16:32:31 +01:00
Ivan Enderlin
0f7646ade1
chore: Make Clippy happy.
2023-02-09 16:16:31 +01:00
Ivan Enderlin
4e1fe3bec4
chore: Fix a function renaming.
2023-02-09 15:49:55 +01:00
Ivan Enderlin
c6d99305d5
fix(labs): Fix jack-in.
2023-02-09 15:46:08 +01:00
Ivan Enderlin
c86ebaddd2
Update crates/matrix-sdk/src/sliding_sync.rs
...
Co-authored-by: Jonas Platte <jplatte+git@posteo.de >
2023-02-09 15:36:13 +01:00
Benjamin Kampmann
048d6a774c
docs(sliding-sync): improved language
...
Co-authored-by: Ivan Enderlin <ivan@mnt.io >
2023-02-09 14:13:41 +01:00
Ivan Enderlin
43f2f60bfd
fix(sdk): Remove Deref impl for SlidingSyncRoom.
...
This implementation is wrong in the sense of its semantics is not about
dereferencing a thin pointer to something, but just to give access to one
specific field of the entire structure. That's not how `Deref` is supposed to
be used.
Moreover, it creates conflict between the `SlidingSyncRoom.timeline` field,
and `SlidingSyncRoom.inner.timeline` field, which both exist, but not for the
same purposes. It creates confusion in the code.
Finally, it's better to expose proper getters to the outside world, so that we
control _and_ test _and_ know exactly what API we provide.
2023-02-09 13:09:22 +01:00
Gabriel Féron
12cbff2688
refactor(sdk): Use spawn_blocking when generating attachment thumbnails
2023-02-09 09:54:43 +01:00
Jonas Platte
bdab40a772
refactor: Fix clippy lint str_to_string in sliding sync tests
2023-02-08 17:52:31 +01:00
Jonas Platte
87de9c7453
refactor(sled): Remove unused re-export
2023-02-08 17:52:31 +01:00
Benjamin Kampmann
765959758b
docs(sliding-sync): Document cold-cache, reactive-api and bot-mode
2023-02-08 16:54:06 +01:00
Jonas Platte
efdeba79f9
chore: Upgrade workspace dependencies
2023-02-08 16:04:29 +01:00
Jonas Platte
e25061f8cb
refactor(crypto)!: Unwrap unused Result
2023-02-08 16:04:29 +01:00
Jonas Platte
345f4f39f4
refactor(sqlite): Make Error more precise / useful
2023-02-08 15:44:17 +01:00
Jonas Platte
e12b9e3027
refactor(sqlite): Encode olm hashes with rmp instead of serde_json
...
… like everything else in the sqlite crypto store.
2023-02-08 15:44:17 +01:00
Jonas Platte
a22529344a
refactor(sqlite): Inline inherent methods that duplicate trait methods
2023-02-08 15:44:17 +01:00
Jonas Platte
64b7c4eb59
refactor(sqlite): Make OpenStoreError more precise / useful
2023-02-08 15:44:17 +01:00
Jonas Platte
1988d1e9a3
refactor(sqlite): Move sqlite extension traits to utils module
2023-02-08 15:44:17 +01:00
Jonas Platte
efc2397267
refactor(sqlite): Always use rusqlite::Error for sqlite extension traits
2023-02-08 15:44:17 +01:00
Jonas Platte
ecb521205f
refactor(sqlite): Move error types into new error module
2023-02-08 15:44:17 +01:00
Jonas Platte
7db40746bb
refactor(sqlite): Start cleaning up cfg attributes
2023-02-08 15:44:17 +01:00
Benjamin Kampmann
3639215d53
docs(sliding-sync): long polling and quick refreshing explained
2023-02-08 13:29:38 +01:00
Benjamin Kampmann
d51e9694f6
fix(sliding-sync): Set as default view mode
2023-02-08 12:43:32 +01:00
Jonas Platte
ae21a56be2
chore: Add missing copyright headers
2023-02-08 11:15:02 +01:00
Kévin Commaille
c252b984e0
refactor(sdk): Use a builder pattern to construct Timeline
...
`Timeline::with_fully_read_tracking` was public although all public
Timeline constructors enable it by default.
It is also meant to be called when constructing the timeline so
using a builder pattern makes sense.
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr >
2023-02-08 10:46:59 +01:00
Benjamin Kampmann
300fdec83f
docs(sliding-sync): First half of sliding sync API docs
2023-02-07 22:41:58 +01:00
Jonas Platte
ee9d47f647
refactor(crypto): Remove confusing explicit Sized bound
...
The bound is there by default, no need to put it in explicitly.
2023-02-07 18:45:32 +01:00
Jonas Platte
2e80073f28
refactor(crypto): Use IntoCryptoStore for OlmMachine::with_store
2023-02-07 18:45:32 +01:00
Jonas Platte
c3d5932a0f
refactor(crypto): Move store::{CryptoStoreError, Result} into new module
2023-02-07 18:45:32 +01:00
Doug
7fdccfcea4
chore(bindings): Rename property and use feature flag.
2023-02-07 15:22:39 +00:00
Doug
630836b3c7
chore(bindings): Store the proxy URL directly in Client.
2023-02-07 15:22:39 +00:00
Doug
3705925a22
chore(bindings): Persist the sliding sync proxy.
...
Added to the Session for automatic restoration.
2023-02-07 15:22:39 +00:00
Doug
b7a3ab7c5b
feat(ffi): Sliding sync proxy discovery.
2023-02-07 15:22:39 +00:00
Jonas Platte
5692480112
refactor(crypto): Remove unused method
2023-02-07 15:59:19 +01:00
Jonas Platte
5b63bd4cf1
refactor(crypto): Reduce direct visibility of some internal types
...
They weren't being exported from any public modules before.
This helps human readers as well as some compiler lints.
2023-02-07 15:59:19 +01:00
Jonas Platte
9711e1b2f5
refactor(crypto): Move (Into)CryptoStore traits into a new module
2023-02-07 15:59:19 +01:00
Damir Jelić
a17346158f
docs(sdk): Fix the sliding sync builder example
2023-02-07 14:26:33 +01:00
Damir Jelić
30ddbab686
refactor(sdk): Move the bulk of the sliding sync logic into a sync_once method
2023-02-07 14:26:33 +01:00
Jonas Platte
b436918cb3
fix(sqlite): Fix Debug output for SqliteCryptoStore
2023-02-06 17:08:21 +01:00
Jonas Platte
b20424b8b5
chore(sqlite): Undo weird formatting of TOML file
2023-02-06 17:08:21 +01:00