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
Kévin Commaille
00638ba74c
feat(sdk): Allow to fetch replied to messages
...
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr >
2023-02-02 13:06:11 +01:00
ganfra
6a7b28c085
Merge branch 'main' into ganfra/kotlin_binding_scripts
2023-02-02 11:52:32 +01:00
ganfra
1bcd8c7aae
Comment remove gradle_build
2023-02-02 11:50:47 +01:00
Jonas Platte
ce973b35e9
chore: Upgrade uniffi to 0.23.0
matrix-sdk-crypto-ffi-0.2.0
2023-02-02 10:15:05 +01:00
Jonas Platte
8a1b1eccd6
doc(sdk): Fix docs that refer to TimelineKey
2023-02-02 10:15:05 +01:00
Jonas Platte
e068b4987e
doc(sdk): Document what happens when timeline event sending fails
2023-02-02 10:14:23 +01:00
Jonas Platte
3a1eb62c38
refactor(sdk): Expose event sending errors through timeline item
...
… instead of through the return value of Timeline::send.
2023-02-02 10:14:23 +01:00
Jonas Platte
c8021cf2ba
refactor(sdk): Move LocalEventTimelineItem#event_id into send_state
2023-02-02 10:14:23 +01:00
Jonas Platte
a48fd77c4a
refactor(sdk): Rename LocalEventTimelineItemSendState => EventSendState
2023-02-02 10:14:23 +01:00
Damir Jelić
ab0e27622e
feat(bindings): Add support to setup a OpenTracing based logger
2023-02-01 22:55:47 +01:00
Damir Jelić
7b044ef5dd
fix(crypto): Ignore the usage and signatures when comparing cross signing keys
...
Co-authored-by: Denis Kasak <dkasak@termina.org.uk >
2023-02-01 18:25:48 +01:00
Benjamin Kampmann
8a9b72ae6c
test(sliding-sync): ensure unknown pos does recover the room subscription properly
2023-02-01 17:37:16 +01:00
Anderas
e9cef35f99
Add matrix-sdk-sqlite with a CryptoStore implementation
...
Note about "Write-Ahead Log" (WAL) mode: The SQLite WAL mode has a
bunch of advantages that are quite nice to have:
1. WAL is significantly faster in most scenarios.
2. WAL provides more concurrency as readers do not block writers and a
writer does not block readers. Reading and writing can proceed
concurrently.
3. Disk I/O operations tends to be more sequential using WAL.
4. WAL uses many fewer fsync() operations and is thus less vulnerable
to problems on systems where the fsync() system call is broken.
The downsides of WAL mode don't really affect us. So let's turn it on.
More info: https://www.sqlite.org/wal.html
Co-authored-by: Jonas Platte <jplatte@matrix.org >
Co-authored-by: Damir Jelić <poljar@termina.org.uk >
2023-02-01 15:06:59 +01:00
Damir Jelić
3a183b4c22
chore(sdk): Tweak the instrumentation for some encryption related methods
matrix-sdk-crypto-ffi-0.1.10
2023-02-01 10:16:14 +01:00
Richard van der Hoff
5dbee7dcdc
fix(indexeddb): correctly encode Olm session keys
...
When we store an Olm session in the database, we encode the sender key and
session ID using the store cipher. That means that we also need to encode them
when we look them up, otherwise we won't find them.
2023-01-31 16:59:22 +01:00
Benjamin Kampmann
b9b00743c9
fix(sliding-sync): catching up on new count for full-sync views
2023-01-31 15:02:19 +00:00
Benjamin Kampmann
14be1f888a
test(sliding-sync): integration test for UnknownPos
2023-01-31 15:02:19 +00:00
Benjamin Kampmann
a77295120a
fix(sliding-sync): fixing restarting growing view
2023-01-31 15:02:19 +00:00
Benjamin Kampmann
a6ad0e35b3
style(sliding-sync): improved style and docs
2023-01-31 14:03:43 +00:00
Benjamin Kampmann
5b3ec33ddc
chore: Update to specific, supported ruma and sliding-sync-proxy-version.
2023-01-31 14:03:43 +00:00
Benjamin Kampmann
aa10e70851
feat(sliding-sync): enable gzip when enabling sliding-sync
2023-01-31 14:03:43 +00:00
Benjamin Kampmann
826b2874ec
ffi: expose sliding sync extension enabling
2023-01-31 14:03:43 +00:00
Benjamin Kampmann
8f17b6c38d
feat(sliding-sync): add Receipt and Typing extension config
2023-01-31 14:03:43 +00:00
Benjamin Kampmann
9ae9c98340
test(sliding-sync): activate live views test
2023-01-31 14:03:43 +00:00
Benjamin Kampmann
f6da282557
feat(sliding-sync): add delta-token support
2023-01-31 14:03:43 +00:00
Benjamin Kampmann
9ad34e8565
chore(sliding-sync): update to latest sliding-sync JSON layout
2023-01-31 14:03:43 +00:00
Benjamin Kampmann
a973c372e6
chore: use local volumes for testing server
2023-01-31 14:03:43 +00:00