From c042e1e63c6ddf9ab9f23fa3b2fef71b1c2834ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Tue, 9 May 2023 11:57:30 +0200 Subject: [PATCH] Disable automatic-key-forwarding for the matrix-sdk-ffi bindings Not completely sure why disabling this didn't work the first time. The feature is now disabled by default in the matrix-sdk-crypto crate. --- bindings/matrix-sdk-crypto-ffi/Cargo.toml | 2 +- bindings/matrix-sdk-crypto-js/Cargo.toml | 2 +- bindings/matrix-sdk-crypto-nodejs/Cargo.toml | 2 +- crates/matrix-sdk-crypto/CHANGELOG.md | 2 ++ crates/matrix-sdk-crypto/Cargo.toml | 2 +- crates/matrix-sdk/Cargo.toml | 1 - 6 files changed, 6 insertions(+), 5 deletions(-) diff --git a/bindings/matrix-sdk-crypto-ffi/Cargo.toml b/bindings/matrix-sdk-crypto-ffi/Cargo.toml index 0bb415bcf..7d64c8c69 100644 --- a/bindings/matrix-sdk-crypto-ffi/Cargo.toml +++ b/bindings/matrix-sdk-crypto-ffi/Cargo.toml @@ -46,7 +46,7 @@ version = "0.6.0" [dependencies.matrix-sdk-crypto] path = "../../crates/matrix-sdk-crypto" version = "0.6.0" -features = ["qrcode", "backups_v1"] +features = ["qrcode", "backups_v1", "automatic-room-key-forwarding"] [dependencies.matrix-sdk-sqlite] path = "../../crates/matrix-sdk-sqlite" diff --git a/bindings/matrix-sdk-crypto-js/Cargo.toml b/bindings/matrix-sdk-crypto-js/Cargo.toml index d371d1c89..dffd30308 100644 --- a/bindings/matrix-sdk-crypto-js/Cargo.toml +++ b/bindings/matrix-sdk-crypto-js/Cargo.toml @@ -41,7 +41,7 @@ futures-util = "0.3.27" http = { workspace = true } js-sys = "0.3.49" matrix-sdk-common = { version = "0.6.0", path = "../../crates/matrix-sdk-common", features = ["js"] } -matrix-sdk-crypto = { version = "0.6.0", path = "../../crates/matrix-sdk-crypto", features = ["js"] } +matrix-sdk-crypto = { version = "0.6.0", path = "../../crates/matrix-sdk-crypto", features = ["js", "automatic-room-key-forwarding"] } matrix-sdk-indexeddb = { version = "0.2.0", path = "../../crates/matrix-sdk-indexeddb" } matrix-sdk-qrcode = { version = "0.4.0", path = "../../crates/matrix-sdk-qrcode", optional = true } ruma = { workspace = true, features = ["js", "rand", "unstable-msc2677"] } diff --git a/bindings/matrix-sdk-crypto-nodejs/Cargo.toml b/bindings/matrix-sdk-crypto-nodejs/Cargo.toml index e30e02fbd..c22e42205 100644 --- a/bindings/matrix-sdk-crypto-nodejs/Cargo.toml +++ b/bindings/matrix-sdk-crypto-nodejs/Cargo.toml @@ -24,7 +24,7 @@ qrcode = ["matrix-sdk-crypto/qrcode"] tracing = ["dep:tracing-subscriber"] [dependencies] -matrix-sdk-crypto = { version = "0.6.0", path = "../../crates/matrix-sdk-crypto", features = ["js"] } +matrix-sdk-crypto = { version = "0.6.0", path = "../../crates/matrix-sdk-crypto", features = ["js", "automatic-room-key-forwarding"] } matrix-sdk-common = { version = "0.6.0", path = "../../crates/matrix-sdk-common", features = ["js"] } matrix-sdk-sled = { version = "0.2.0", path = "../../crates/matrix-sdk-sled", default-features = false, features = ["crypto-store"] } matrix-sdk-sqlite = { version = "0.1.0", path = "../../crates/matrix-sdk-sqlite", features = ["crypto-store"] } diff --git a/crates/matrix-sdk-crypto/CHANGELOG.md b/crates/matrix-sdk-crypto/CHANGELOG.md index 5095e3b7f..a8c7108df 100644 --- a/crates/matrix-sdk-crypto/CHANGELOG.md +++ b/crates/matrix-sdk-crypto/CHANGELOG.md @@ -1,5 +1,7 @@ # v0.7.0 +- Disable the automatic-key-forwarding feature by default. + - Add a new variant to the `VerificationRequestState` enum called `Transitioned`. This enum variant is used when a `VerificationRequest` transitions into a concrete `Verification` object. The concrete `Verification` diff --git a/crates/matrix-sdk-crypto/Cargo.toml b/crates/matrix-sdk-crypto/Cargo.toml index 61ab17d36..f0cbd29b2 100644 --- a/crates/matrix-sdk-crypto/Cargo.toml +++ b/crates/matrix-sdk-crypto/Cargo.toml @@ -15,7 +15,7 @@ version = "0.6.0" rustdoc-args = ["--cfg", "docsrs"] [features] -default = ["automatic-room-key-forwarding"] +default = [] automatic-room-key-forwarding = [] js = ["ruma/js", "vodozemac/js"] qrcode = ["dep:matrix-sdk-qrcode"] diff --git a/crates/matrix-sdk/Cargo.toml b/crates/matrix-sdk/Cargo.toml index f94b53cd6..b42b8e464 100644 --- a/crates/matrix-sdk/Cargo.toml +++ b/crates/matrix-sdk/Cargo.toml @@ -26,7 +26,6 @@ testing = [] e2e-encryption = [ "matrix-sdk-base/e2e-encryption", - "matrix-sdk-base/automatic-room-key-forwarding", "matrix-sdk-sqlite?/crypto-store", # activate crypto-store on sqlite if given "matrix-sdk-indexeddb?/e2e-encryption", # activate on indexeddb if given ]