You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-08-09 10:22:46 +03:00
Bump dependency on rust-sdk-crypto-wasm to v8.0.0 (#4396)
This commit is contained in:
@@ -50,7 +50,7 @@
|
|||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.12.5",
|
"@babel/runtime": "^7.12.5",
|
||||||
"@matrix-org/matrix-sdk-crypto-wasm": "^7.0.0",
|
"@matrix-org/matrix-sdk-crypto-wasm": "^8.0.0",
|
||||||
"@matrix-org/olm": "3.2.15",
|
"@matrix-org/olm": "3.2.15",
|
||||||
"another-json": "^0.2.0",
|
"another-json": "^0.2.0",
|
||||||
"bs58": "^6.0.0",
|
"bs58": "^6.0.0",
|
||||||
|
@@ -254,9 +254,9 @@ export class RoomEncryptor {
|
|||||||
// When this.room.getBlacklistUnverifiedDevices() === null, the global settings should be used
|
// When this.room.getBlacklistUnverifiedDevices() === null, the global settings should be used
|
||||||
// See Room#getBlacklistUnverifiedDevices
|
// See Room#getBlacklistUnverifiedDevices
|
||||||
if (this.room.getBlacklistUnverifiedDevices() ?? globalBlacklistUnverifiedDevices) {
|
if (this.room.getBlacklistUnverifiedDevices() ?? globalBlacklistUnverifiedDevices) {
|
||||||
rustEncryptionSettings.sharingStrategy = CollectStrategy.DeviceBasedStrategyOnlyTrustedDevices;
|
rustEncryptionSettings.sharingStrategy = CollectStrategy.deviceBasedStrategy(true, false);
|
||||||
} else {
|
} else {
|
||||||
rustEncryptionSettings.sharingStrategy = CollectStrategy.DeviceBasedStrategyAllDevices;
|
rustEncryptionSettings.sharingStrategy = CollectStrategy.deviceBasedStrategy(false, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
await logDuration(this.prefixedLogger, "shareRoomKey", async () => {
|
await logDuration(this.prefixedLogger, "shareRoomKey", async () => {
|
||||||
|
@@ -1741,6 +1741,7 @@ class EventDecryptor {
|
|||||||
const res = (await this.olmMachine.decryptRoomEvent(
|
const res = (await this.olmMachine.decryptRoomEvent(
|
||||||
stringifyEvent(event),
|
stringifyEvent(event),
|
||||||
new RustSdkCryptoJs.RoomId(event.getRoomId()!),
|
new RustSdkCryptoJs.RoomId(event.getRoomId()!),
|
||||||
|
new RustSdkCryptoJs.DecryptionSettings(RustSdkCryptoJs.TrustRequirement.Untrusted),
|
||||||
)) as RustSdkCryptoJs.DecryptedRoomEvent;
|
)) as RustSdkCryptoJs.DecryptedRoomEvent;
|
||||||
|
|
||||||
// Success. We can remove the event from the pending list, if
|
// Success. We can remove the event from the pending list, if
|
||||||
|
@@ -1453,10 +1453,10 @@
|
|||||||
"@jridgewell/resolve-uri" "^3.1.0"
|
"@jridgewell/resolve-uri" "^3.1.0"
|
||||||
"@jridgewell/sourcemap-codec" "^1.4.14"
|
"@jridgewell/sourcemap-codec" "^1.4.14"
|
||||||
|
|
||||||
"@matrix-org/matrix-sdk-crypto-wasm@^7.0.0":
|
"@matrix-org/matrix-sdk-crypto-wasm@^8.0.0":
|
||||||
version "7.0.0"
|
version "8.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/@matrix-org/matrix-sdk-crypto-wasm/-/matrix-sdk-crypto-wasm-7.0.0.tgz#8d6abdb9ded8656cc9e2a7909913a34bf3fc9b3a"
|
resolved "https://registry.yarnpkg.com/@matrix-org/matrix-sdk-crypto-wasm/-/matrix-sdk-crypto-wasm-8.0.0.tgz#6ddc0e63538e821a2efbc5c1a2f0fa0f71d489ff"
|
||||||
integrity sha512-MOencXiW/gI5MuTtCNsuojjwT5DXCrjMqv9xOslJC9h2tPdLFFFMGr58dY5Lis4DRd9MRWcgrGowUIHOqieWTA==
|
integrity sha512-s0q3O2dK8b6hOJ+SZFz+s/IiMabmVsNue6r17sTwbrRD8liBkCrpjYnxoMYvtC01GggJ9TZLQbeqpt8hQSPHAg==
|
||||||
|
|
||||||
"@matrix-org/olm@3.2.15":
|
"@matrix-org/olm@3.2.15":
|
||||||
version "3.2.15"
|
version "3.2.15"
|
||||||
|
Reference in New Issue
Block a user