Jonas Platte
f4e0cab11f
feat(sdk)!: Merge HttpError::UiaaError into HttpError::Api
2022-10-12 12:34:09 +02:00
Jonas Platte
f07735291e
Fix warnings from generated code
2022-10-10 19:24:56 +02:00
Anderas
d4e7076e1d
Compile Crypto FFI for MacOS
2022-10-10 18:59:25 +02:00
Jonas Platte
61e95abaf2
refactor: Use Box::default
...
… as suggested by clippy.
2022-10-10 18:52:59 +02:00
Damir Jelić
8763a2468c
fix(crypto): Take more data into account when comparing sessions
2022-10-10 15:20:25 +02:00
Damir Jelić
8f6e3033e3
fix(crypto): Check for existing room keys when receiving a new one.
...
Now that we're not scoping the room keys by the Curve25519 sender key
we're opening the door of multiple devices trying to insert the same
room key into our store.
This patch changes our logic so we only store room keys from an
m.room_key event if we don't have one already or if the new key is
a better version of the one we already have.
This mostly assumes that the first room key with a given session id
is coming from the creator of the room key.
2022-10-10 15:20:25 +02:00
Damir Jelić
2f94886663
refactor(crypto)!: Don't use the Curve25519 sender key to store room keys
2022-10-10 15:20:25 +02:00
Jonas Platte
8b728d4ada
ci: Pin typos version
...
Currently, master is broken: https://github.com/crate-ci/typos/issues/590
matrix-sdk-crypto-ffi-0.1.2
matrix-sdk-crypto-ffi-0.1.1
2022-10-06 17:27:55 +02:00
Jonas Platte
26faf0d4c0
feat(bindings): Add custom kotlin package name for crypto-ffi
2022-10-06 17:27:55 +02:00
Jonas Platte
a3113bd125
refactor(bindings): Start using #[uniffi::export] for matrix-sdk-crypto-ffi
2022-10-06 17:27:55 +02:00
Jonas Platte
a75d7171f8
refactor(bindings): Rename crypto-ffi UniFFI namespace
...
… from olm to matrix_crypto_ffi to match the lib name.
Names need to match for integration of UniFFI's proc-macro frontend.
2022-10-06 17:27:55 +02:00
Jonas Platte
c3eaa864dd
refactor(bindings): Unset custom lib name for crypto-ffi
2022-10-06 17:27:55 +02:00
Jonas Platte
6a561c20e2
refactor(bindings): Use uniffi::export for most of ClientBuilder's API
2022-10-06 10:56:22 +02:00
Jonas Platte
0581b8a884
refactor: Derive Default for enums
2022-10-06 10:55:49 +02:00
Jonas Platte
bdfdaeb0ae
chore: Upgrade async-once-cell
2022-10-06 10:55:49 +02:00
Jonas Platte
c24c20f7f1
Raise MSRV to 1.62
2022-10-06 10:55:49 +02:00
Jonas Platte
6b3acf1bf7
chore(sdk): Use inline tables more in Cargo.toml
...
Makes the file a little more comprehensible.
2022-10-06 10:55:49 +02:00
Jonas Platte
822cdae8f3
chore(sdk): Only include derive_builder dependency for sliding-sync feature
2022-10-06 10:55:49 +02:00
Jonas Platte
4fcbb61145
refactor!: Delete the store module
...
It was very confusing that matrix_sdk::store::make_store_config's first
argument was either a path or a database name depending on the build
configuration. ClientBuilder::{sled_store, indexeddb_store} are also
easier to use.
2022-10-05 13:49:12 +02:00
Jonas Platte
4628481d0e
refactor(bindings): Use UniFFI proc-macro frontend more
2022-10-05 12:21:44 +02:00
Jonas Platte
e05de8d4ce
chore: Upgrade UniFFI
2022-10-05 12:21:44 +02:00
Johannes Marbach
6bc79b04cf
feat(bindings): Allow clients using matrix-sdk-ffi to set the user agent
2022-10-05 09:18:52 +02:00
Damir Jelić
fa88751548
fix(crypto): Ignore duplicate verification requests
2022-10-04 13:38:07 +02:00
Andy Uhnak
09c906b1d7
Debug message
2022-10-04 11:50:16 +01:00
Andy Uhnak
6fab6ef318
Ignore duplicate verification requests
2022-10-04 11:38:08 +01:00
Lautaro Bustos
d5728f235d
feat(sdk): Allow configuring the presence in the SyncSettings
2022-10-03 11:52:23 +02:00
Johannes Marbach
6827c70886
chore: Ignore Swift's .build folder
2022-09-30 21:54:09 +02:00
Jonas Platte
ab1a6a6b37
chore: Remove experimental-timeline Cargo feature
2022-09-30 13:48:17 +02:00
Jonas Platte
3c9c7290ae
chore: Remove deprecated functions
2022-09-30 10:40:56 +00:00
Benjamin Kampmann
530f8057cc
Merge pull request #1071 from matrix-org/ben-releasing-0.6
...
chore: crates.io only accepts versioned git deps
2022-09-29 15:02:10 +02:00
Ivan Enderlin
8e0e752f12
Merge pull request #1075 from Hywan/fix-crypto-nodejs-release-script-npm-token
...
fix(crypto-nodejs): Hopefully it will make `NPM_TOKEN` available in the script
2022-09-29 11:52:30 +02:00
Ivan Enderlin
b1493c5217
fix(crypto-nodejs): Hopefully it will make NPM_TOKEN available in the script.
...
We hope that adding this to the workflow will make `NPM_TOKEN`
available from within the script.
2022-09-29 11:36:29 +02:00
Ivan Enderlin
7988dc6cf3
Mergfix(crypto-nodejs): Fix the prep release script
...
fix(crypto-nodejs): Fix the prep release script
2022-09-28 17:48:43 +02:00
Ivan Enderlin
180796c747
fix(crypto-nodejs): Fix the prep release script.
2022-09-28 17:46:56 +02:00
Benjamin Kampmann
fefd2a6b68
chore: crates.io only accepts versioned git deps
matrix-sdk-0.6.0
matrix-sdk-common-0.6.0
matrix-sdk-test-0.6.0
matrix-sdk-store-encryption-0.2.0
matrix-sdk-sled-0.2.0
matrix-sdk-qrcode-0.4.0
matrix-sdk-indexeddb-0.2.0
matrix-sdk-crypto-0.6.0
matrix-sdk-base-0.6.0
2022-09-28 17:15:09 +02:00
Benjamin Kampmann
269bf3a706
chore: remove old release notes
2022-09-28 17:07:37 +02:00
Benjamin Kampmann
91d1ee9f09
chore: fix typos in Upgrade guide
2022-09-28 17:07:37 +02:00
Benjamin Kampmann
b22fe63476
chore: More minor changes of note
2022-09-28 17:07:37 +02:00
Benjamin Kampmann
92467af4a0
docs: Upgrading typo fixes
2022-09-28 17:07:37 +02:00
Benjamin Kampmann
f1f1c1bba6
chore: Version bump
2022-09-28 17:07:37 +02:00
Benjamin Kampmann
ff82d6420d
chore: specify which crates to release and which not
2022-09-28 17:07:37 +02:00
Benjamin Kampmann
b9409b7c0f
docs: more migrations guide
2022-09-28 17:07:37 +02:00
Benjamin Kampmann
ea51935601
docs: Clarifications in the Upgrade guide
2022-09-28 17:07:37 +02:00
Benjamin Kampmann
2fff5d916b
docs: More Upgrade guidance
2022-09-28 17:07:37 +02:00
Benjamin Kampmann
d16faee68b
docs: First outline of upgrades guide
2022-09-28 17:07:37 +02:00
Benjamin Kampmann
df9b60a5bc
chore: Ignore flaky redaction tests
2022-09-28 17:07:10 +02:00
Damir Jelić
1a57170970
test(crypto): Make sure we don't accept megolm encrypted events over to-device
2022-09-28 16:03:17 +02:00
Damir Jelić
41449d2cc3
test(crypto): Test that we reject forwarded room keys from other users
2022-09-28 16:03:17 +02:00
Damir Jelić
093fb5d0aa
fix(crypto): Only accept forwarded room keys from our own trusted devices
2022-09-28 16:03:17 +02:00
Ivan Enderlin
513afa57ef
feat(indexeddb): Introduce the experimental-nodejs feature
...
feat(indexeddb): Introduce the `experimental-nodejs` feature
2022-09-28 14:57:55 +02:00