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
Update matrix-sdk-crypto-wasm to 15.0.0
(#4882)
For js-sdk users, this includes the following: - Send stable identifier `sender_device_keys` for MSC4147 (Including device keys with Olm-encrypted events). ([#4964](https://github.com/matrix-org/matrix-rust-sdk/pull/4964)) - Check the `sender_device_keys` field on _all_ incoming Olm-encrypted to-device messages and ignore any to-device messages which include the field but whose data is invalid (as per [MSC4147](https://github.com/matrix-org/matrix-spec-proposals/pull/4147)). ([#4922](https://github.com/matrix-org/matrix-rust-sdk/pull/4922)) - Fix bug which caused room keys to be unnecessarily rotated on every send in the presence of blacklisted/withheld devices in the room. ([#4954](https://github.com/matrix-org/matrix-rust-sdk/pull/4954)) - Fix [matrix-rust-sdk#2729](https://github.com/matrix-org/matrix-rust-sdk/issues/2729) which in rare cases can cause room key oversharing. ([#4975](https://github.com/matrix-org/matrix-rust-sdk/pull/4975))
This commit is contained in:
committed by
GitHub
parent
67df2a53c4
commit
8f597f0f87
@@ -49,7 +49,7 @@
|
|||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.12.5",
|
"@babel/runtime": "^7.12.5",
|
||||||
"@matrix-org/matrix-sdk-crypto-wasm": "^14.2.0",
|
"@matrix-org/matrix-sdk-crypto-wasm": "^15.0.0",
|
||||||
"another-json": "^0.2.0",
|
"another-json": "^0.2.0",
|
||||||
"bs58": "^6.0.0",
|
"bs58": "^6.0.0",
|
||||||
"content-type": "^1.0.4",
|
"content-type": "^1.0.4",
|
||||||
|
@@ -35,7 +35,7 @@ import { type IHttpOpts, type MatrixHttpApi, Method } from "../http-api/index.ts
|
|||||||
import { RoomEncryptor } from "./RoomEncryptor.ts";
|
import { RoomEncryptor } from "./RoomEncryptor.ts";
|
||||||
import { OutgoingRequestProcessor } from "./OutgoingRequestProcessor.ts";
|
import { OutgoingRequestProcessor } from "./OutgoingRequestProcessor.ts";
|
||||||
import { KeyClaimManager } from "./KeyClaimManager.ts";
|
import { KeyClaimManager } from "./KeyClaimManager.ts";
|
||||||
import { logDuration, MapWithDefault } from "../utils.ts";
|
import { MapWithDefault } from "../utils.ts";
|
||||||
import {
|
import {
|
||||||
type BackupTrustInfo,
|
type BackupTrustInfo,
|
||||||
type BootstrapCrossSigningOpts,
|
type BootstrapCrossSigningOpts,
|
||||||
@@ -1494,17 +1494,14 @@ export class RustCrypto extends TypedEventEmitter<RustCryptoEvents, CryptoEventH
|
|||||||
unusedFallbackKeys?: Set<string>;
|
unusedFallbackKeys?: Set<string>;
|
||||||
devices?: RustSdkCryptoJs.DeviceLists;
|
devices?: RustSdkCryptoJs.DeviceLists;
|
||||||
}): Promise<IToDeviceEvent[]> {
|
}): Promise<IToDeviceEvent[]> {
|
||||||
const result = await logDuration(logger, "receiveSyncChanges", async () => {
|
const result = await this.olmMachine.receiveSyncChanges(
|
||||||
return await this.olmMachine.receiveSyncChanges(
|
events ? JSON.stringify(events) : "[]",
|
||||||
events ? JSON.stringify(events) : "[]",
|
devices,
|
||||||
devices,
|
oneTimeKeysCounts,
|
||||||
oneTimeKeysCounts,
|
unusedFallbackKeys,
|
||||||
unusedFallbackKeys,
|
);
|
||||||
);
|
|
||||||
});
|
|
||||||
|
|
||||||
// receiveSyncChanges returns a JSON-encoded list of decrypted to-device messages.
|
return result.map((processed) => JSON.parse(processed.rawEvent));
|
||||||
return JSON.parse(result);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** called by the sync loop to preprocess incoming to-device messages
|
/** called by the sync loop to preprocess incoming to-device messages
|
||||||
|
@@ -1705,10 +1705,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@^14.2.0":
|
"@matrix-org/matrix-sdk-crypto-wasm@^15.0.0":
|
||||||
version "14.2.1"
|
version "15.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/@matrix-org/matrix-sdk-crypto-wasm/-/matrix-sdk-crypto-wasm-14.2.1.tgz#f760b09cab7b48b0ad59332dd255756e1ee80eb4"
|
resolved "https://registry.yarnpkg.com/@matrix-org/matrix-sdk-crypto-wasm/-/matrix-sdk-crypto-wasm-15.0.0.tgz#5b29ca1c62f3aface9db06d7441d0a9ba2cd3439"
|
||||||
integrity sha512-HDCaAnIxz/3jJTB2EUYKFgVaI+auS0piIZxPDXHhk1Kn7yZWwKvVvCHkFqBJgBhZOAazbDU7MVArvrtn8QFkoQ==
|
integrity sha512-tzBGf/jugrOw190Na77LljZIQMTSL6SAnZaATKMlb2j1XOfc5Q+bSJTb9ZWBR7TFs0d8K9spcwRHPc4S/7CMYw==
|
||||||
|
|
||||||
"@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