1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-12-04 05:02:41 +03:00

Handle outgoing requests from rust crypto SDK (#3019)

The rust matrix-sdk-crypto has an `outgoingRequests()` method which we need to poll, and make the requested requests.
This commit is contained in:
Richard van der Hoff
2023-01-04 12:17:42 +00:00
committed by GitHub
parent 6168cedf32
commit 9ac7165e99
4 changed files with 285 additions and 13 deletions

View File

@@ -2148,7 +2148,7 @@ export class MatrixClient extends TypedEventEmitter<EmittedEvents, ClientEventHa
// importing rust-crypto will download the webassembly, so we delay it until we know it will be
// needed.
const RustCrypto = await import("./rust-crypto");
this.cryptoBackend = await RustCrypto.initRustCrypto(userId, deviceId);
this.cryptoBackend = await RustCrypto.initRustCrypto(this.http, userId, deviceId);
}
/**