Kévin Commaille
1684dbe0a1
feat(examples): Add example to persist a session
...
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr >
2023-02-28 09:20:53 +01:00
Doug
9531dc195a
fix(bindings): Fix double quotes when replying to a reply.
2023-02-27 18:23:49 +01:00
Jonas Platte
d06e8ccfc5
refactor: Upgrade eyeball and use SharedObservable
...
… but not in sliding sync yet, where some planned refactorings might
conflict with this.
2023-02-27 13:29:28 +01:00
Anderas
f0986643ce
chore(crypto): Log Olm session identifiers
...
Co-authored-by: Damir Jelić <poljar@termina.org.uk >
2023-02-27 10:59:30 +01:00
Jonas Platte
d0c8ec7a22
refactor: Replace remaining usage of futures-signal with eyeball(-im)
2023-02-23 15:08:41 +01:00
Jonas Platte
6c92bf8745
refactor(sdk): Remove unused dependency
2023-02-23 11:47:51 +01:00
Jonas Platte
ba6fc794b0
refactor(base): Replace futures-signals with eyeball
2023-02-23 11:47:51 +01:00
Jonas Platte
17b86b7c38
refactor(crypto): Replace futures-signals with eyeball
2023-02-23 11:47:51 +01:00
Jonas Platte
95f1867816
chore: Delete sled-state-inspector
...
The sled store is on its way out and nobody is using this.
2023-02-22 13:17:01 +01:00
Ivan Enderlin
1469e9033c
feat(crypto-nodejs): OlmMachine.initialize takes a new optional store type
...
feat(crypto-nodejs): `OlmMachine.initialize` takes a new optional store type
2023-02-22 10:33:26 +01:00
Jonas Platte
843fe6a239
refactor(sdk): Remove derive_builder
2023-02-21 10:20:11 +01:00
Jonas Platte
cb06feea22
refactor(sled): Remove derive_builder
...
… and use owned Builder pattern like for Client.
2023-02-21 10:20:11 +01:00
Jonas Platte
b0e7f3d031
refactor(indexeddb): Remove derive_builder
...
… and use owned Builder pattern like for Client.
2023-02-21 10:20:11 +01:00
Jonas Platte
b96532878b
refactor(sdk): Replace futures-signals with eyeball-im in the timeline
2023-02-20 18:01:31 +01:00
Jonas Platte
c2f529ed71
chore: Run cargo update
...
To pull in the latest Ruma release with a bugfix for content reporting.
2023-02-17 11:30:13 +01:00
Ivan Enderlin
d600af7c0e
feat(crypto-nodejs): OlmMachine.initialize takes a new optional store type.
...
This patch allows an `OlmMachine` to use a different store than Sled, like SQLite.
A new enum is introduced: `StoreType` which 2 variants: `Sled` (the default), and `Sqlite`.
The `OlmMachine.initialize` constructor now takes a new optional `store_type:
Option<StoreType>` argument. If no value is passed, the default `StoreType`
variant will be used (as mentioned: `StoreType.Sled`).
The code has been rewritten a little bit to make the type system happy without
introducing too much type indirections.
This patch finally adds a parameterized tests that exhaustively test: no store
type, `Sled` and `Sqlite`.
2023-02-16 16:26:06 +01:00
Ivan Enderlin
9479f23f4b
fix(sdk): Reconciliate events in the timeline queue in Sliding Sync when new updates arrive
...
fix(sdk): Reconciliate events in the timeline queue in Sliding Sync when new updates arrive
2023-02-16 12:35:35 +01:00
Damir Jelić
abef9fae1a
chore(bindings): Use tracing-android instead of android-logger
2023-02-16 09:59:16 +01:00
Jonas Platte
3f2b12c996
chore(base): Remove unused futures-channel dependency
2023-02-16 08:59:41 +01:00
Ivan Enderlin
838488702f
Merge branch 'main' into test-sliding-sync-timeline-limit-duplication
2023-02-16 08:45:22 +01:00
Ivan Enderlin
d9f9ed9d68
fix(sdk): Reconciliate timeline queue in SlidingSync when new updates arrive.
...
The code is self-documented. Please read it.
2023-02-15 16:50:40 +01:00
Jonas Platte
188aaecde3
feat(sdk): Keep Timeline event handlers around longer
...
… if the Timeline object itself is dropped, but something is still
subscribed to its changes.
2023-02-15 15:29:04 +01:00
Jonas Platte
118497f9ec
test: Remove unused dependency
2023-02-13 16:59:45 +01:00
Damir Jelić
2654e909be
feat(store-encryption): Add support to export/import the cipher using a key
...
This is useful for platforms which might want to avoid the cost of
password based key-derivation and have the ability to securely store an
encryption key.
Co-authored-by: Denis Kasak <dkasak@termina.org.uk >
2023-02-13 14:08:45 +00:00
Richard van der Hoff
8d642784bb
fix: remove dependency on broken wasm_timer crate
...
`wasm_timer` doesn't work outside the browser, which prevents it being used in
tests.
We can replace it with `gloo-timers` wich uses the standard Javascript
`setTimeout`.
2023-02-13 12:41:36 +01:00
Jonas Platte
3a516a5fce
refactor(sqlite): Use internal Error in CryptoStore impl
2023-02-13 12:05:04 +01:00
Jonas Platte
efdeba79f9
chore: Upgrade workspace dependencies
2023-02-08 16:04:29 +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
Doug
3705925a22
chore(bindings): Persist the sliding sync proxy.
...
Added to the Session for automatic restoration.
2023-02-07 15:22:39 +00: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
Jonas Platte
ce973b35e9
chore: Upgrade uniffi to 0.23.0
2023-02-02 10:15:05 +01:00
Damir Jelić
ab0e27622e
feat(bindings): Add support to setup a OpenTracing based logger
2023-02-01 22:55:47 +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
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
9ad34e8565
chore(sliding-sync): update to latest sliding-sync JSON layout
2023-01-31 14:03:43 +00:00
Jonas Platte
0e39a7cbf2
chore: Upgrade Ruma
2023-01-25 18:01:12 +01:00
Damir Jelić
4ef654f1d1
chore: Bump the Ruma version
2023-01-25 18:01:12 +01:00
Damir Jelić
a54a421f91
chore(sdk): Log the response/request sizes as well
2023-01-19 15:46:49 +01:00
Doug
9e12a88e03
feat(bindings): Allow setting the store passphrase in the bindings
...
Co-authored-by: Damir Jelić <poljar@termina.org.uk >
2023-01-18 06:45:21 +00:00
Jonas Platte
6c53842599
chore: Bump ruma, vodozemac
2023-01-16 10:34:06 +01:00
Benjamin Kampmann
fabf0d40bc
test: add test for moving window and rooms
2023-01-12 13:24:16 +01:00
Benjamin Kampmann
60d82fde38
test: add sliding-sync integration-testing facilities
2023-01-12 13:24:16 +01:00
Kévin Commaille
f883293168
chore: Update Ruma
...
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr >
2023-01-11 16:05:02 +01:00
Jonas Platte
a98c1fd00d
chore: Update Cargo.lock
2023-01-10 10:19:02 +01:00
Jonas Platte
f4bfbdf97d
chore: Upgrade base64
2023-01-10 10:19:02 +01:00
Jonas Platte
2e30e11101
refactor: Use workspace dependencies for more crates
2023-01-10 10:19:02 +01:00
Jonas Platte
3af6ba245c
refactor: Fully replace matches crate with assert_matches
2023-01-10 10:19:02 +01:00
dependabot[bot]
63c8696cac
chore(deps): bump tokio from 1.22.0 to 1.23.1
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.22.0 to 1.23.1.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.22.0...tokio-1.23.1 )
---
updated-dependencies:
- dependency-name: tokio
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-07 14:06:32 +01:00
Damir Jelić
72519b7386
chore(labs): Use clap instead of structopt for jack-in
...
Update to clap v4 in jack-in
2023-01-04 12:49:50 +01:00