1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-23 17:02:25 +03:00

Fix CryptoApi#getVerificationRequestsToDeviceInProgress (#3611)

This commit is contained in:
Florian Duros
2023-07-20 11:46:55 +02:00
committed by GitHub
parent 7dffd8ffd3
commit ecef9fd755
2 changed files with 9 additions and 1 deletions

View File

@@ -575,7 +575,7 @@ export class RustCrypto extends TypedEventEmitter<RustCryptoEvents, RustCryptoEv
*/
public getVerificationRequestsToDeviceInProgress(userId: string): VerificationRequest[] {
const requests: RustSdkCryptoJs.VerificationRequest[] = this.olmMachine.getVerificationRequests(
new RustSdkCryptoJs.UserId(this.userId),
new RustSdkCryptoJs.UserId(userId),
);
return requests
.filter((request) => request.roomId === undefined)