You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-26 17:03:12 +03:00
Bump matrix-rust-sdk-crypto-wasm to v3.2.0 (#3933)
* Bump `matrix-rust-sdk-crypto-wasm` to v3.2.0 * Reinstate timeout on `getUserDevices` call Turns out that this used to have a timeout of 1 second in the wasm bindings, which it no longer does. Reinstate it here.
This commit is contained in:
committed by
GitHub
parent
df4536492c
commit
f4b6f91ee2
@@ -525,7 +525,10 @@ export class RustCrypto extends TypedEventEmitter<RustCryptoEvents, RustCryptoEv
|
||||
// To fix this, we explicitly call `.free` on each of the objects, which tells the rust code to drop the
|
||||
// allocated memory and decrement the refcounts for the crypto store.
|
||||
|
||||
const userDevices: RustSdkCryptoJs.UserDevices = await this.olmMachine.getUserDevices(rustUserId);
|
||||
// Wait for up to a second for any in-flight device list requests to complete.
|
||||
// The reason for this isn't so much to avoid races (some level of raciness is
|
||||
// inevitable for this method) but to make testing easier.
|
||||
const userDevices: RustSdkCryptoJs.UserDevices = await this.olmMachine.getUserDevices(rustUserId, 1);
|
||||
try {
|
||||
const deviceArray: RustSdkCryptoJs.Device[] = userDevices.devices();
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user