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
Ivan Enderlin
5f933b1033
feat(sdk): Simplify code by using std::cmp::min
...
feat(sdk): Simplify code by using `std::cmp::min`
2023-02-06 14:46:46 +01:00
Ivan Enderlin
5e8224f19c
feat(sdk): Simplify code by using std::cmp::min.
2023-02-06 13:43:01 +01:00
Damir Jelić
e68134dd53
chore(crypto): Improve the logs for the OlmMachine constructor
2023-02-06 13:31:00 +01:00
Damir Jelić
945c16a7fb
feat(crypto): Throw an error if our user/device pair isn't what we have in the store
2023-02-06 13:31:00 +01:00
dependabot[bot]
fc8cd2e7e5
chore(deps): bump tokio from 1.24.1 to 1.24.2
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.24.1 to 1.24.2.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/commits )
---
updated-dependencies:
- dependency-name: tokio
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-02-04 08:27:50 +01:00
Damir Jelić
4115975135
fix(bindings): Expose the OpenTelemetry logging for other platforms as well
2023-02-03 22:30:11 +01:00
Damir Jelić
35a26be7b0
chore(sdk): Record the sliding sync pos in our logs
2023-02-03 16:51:33 +01:00
Jonas Platte
052832b4d3
fix: Don't log raw events that fail deserialization
...
… but do log relevant parts to allow debugging.
2023-02-03 14:35:10 +01:00
Richard van der Hoff
e516e15d2b
matrix-sdk-crypto-js v0.1.0-alpha.4
Release `crypto-js` / Publish 🕸 [m]-crypto-js (push) Failing after 31s
matrix-sdk-crypto-js-v0.1.0-alpha.4
2023-02-03 12:17:37 +01:00
Ivan Enderlin
2bc9407563
feat(sdk): Remove SlidingSyncView.rooms
...
feat(sdk): Remove `SlidingSyncView.rooms`
2023-02-03 11:51:25 +01:00
Jonas Platte
47f8b6cb79
feat(ffi): Add Room::fetch_members
2023-02-02 17:48:26 +01:00
Jonas Platte
e11dd099d8
feat(sdk): Add Timeline::fetch_members
2023-02-02 17:48:26 +01:00
Jonas Platte
c294a376e8
refactor(sdk): Use TimelineDetails for sender profile
2023-02-02 17:48:26 +01:00
Jonas Platte
ffa0190517
refactor(sdk): Add missing feature-gate
...
… for fn that is only used from sliding-sync.
2023-02-02 17:48:26 +01:00
Jonas Platte
3a863fa8fb
refactor(sdk): Remove unnecessary inner block in function
2023-02-02 17:48:26 +01:00
ganfra
75d396e2ec
Merge branch 'main' into ganfra/kotlin_binding_scripts
2023-02-02 17:10:34 +01:00
Ivan Enderlin
672a640854
chore(labs): Update to later changes.
2023-02-02 15:27:18 +01:00
Ivan Enderlin
40010cd511
Merge branch 'main' into feat-sliding-sync-view-rooms
2023-02-02 15:26:30 +01:00
Ivan Enderlin
a6d33fcd16
feat(labs): Update jack-in to the new sliding sync room API.
2023-02-02 15:22:41 +01:00
Ivan Enderlin
d08606e3b9
feat(sdk): SlidingSync::get_room now takes a ref to OwnedRoomId
...
feat(sdk): `SlidingSync::get_room` now takes a ref to `OwnedRoomId`.
2023-02-02 14:06:14 +01:00
Ivan Enderlin
ae8a8c6cc3
feat(sdk): SldingSync::get_room takes a &RoomId.
2023-02-02 13:36:32 +01:00
Ivan Enderlin
0d87d0f786
feat(sdk): Remove SlidingSyncView.rooms.
...
`SlidingSyncView` exposes a `room` field. Problem: It's not updated
correctly and leads to error. The canonical way to get a room is by using
`SlidingSync::get_room`. This patch thus removes `SlidingSyncView.rooms`
entirely.
2023-02-02 13:31:46 +01:00
Ivan Enderlin
a9ba2dd546
feat(sdk): SlidingSync::get_room now takes a ref to OwnedRoomId.
...
Before this patch, `SlidingSync::get_room` was taking ownership of an
`OwnedRoomId`, to only use it as a reference. Thus, calling this method was
creating useless clones.
This patch updates `SlidingSync::get_room` to receive a reference to
`OwnedRoomId`.
2023-02-02 13:25:36 +01:00