You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-23 17:02:25 +03:00
Element-R: implement CryptoApi.getVerificationRequestsToDeviceInProgress (#3497)
* Element-R: Implement `CryptoApi.getVerificationRequestsToDeviceInProgress`
* Element-R: Implement `requestOwnUserVerification` (#3503)
* Revert "Element-R: Implement `requestOwnUserVerification` (#3503)"
This reverts commit 8da756503c.
oops, merged too soon
This commit is contained in:
committed by
GitHub
parent
3e646bdfa0
commit
96e484a3fe
@@ -544,8 +544,12 @@ export class RustCrypto implements CryptoBackend {
|
||||
* @returns the VerificationRequests that are in progress
|
||||
*/
|
||||
public getVerificationRequestsToDeviceInProgress(userId: string): VerificationRequest[] {
|
||||
// TODO
|
||||
return [];
|
||||
const requests: RustSdkCryptoJs.VerificationRequest[] = this.olmMachine.getVerificationRequests(
|
||||
new RustSdkCryptoJs.UserId(this.userId),
|
||||
);
|
||||
return requests
|
||||
.filter((request) => request.roomId === undefined)
|
||||
.map((request) => new RustVerificationRequest(request, this.outgoingRequestProcessor));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user