feat(event): deprecate parameter and functions using legacy crypto (#4697)
This commit is contained in:
+9
-1
@@ -407,9 +407,12 @@ export class MatrixEvent extends TypedEventEmitter<MatrixEventEmittedEvents, Mat
|
||||
*/
|
||||
public forwardLooking = true;
|
||||
|
||||
/* If the event is a `m.key.verification.request` (or to_device `m.key.verification.start`) event,
|
||||
/**
|
||||
* If the event is a `m.key.verification.request` (or to_device `m.key.verification.start`) event,
|
||||
* `Crypto` will set this the `VerificationRequest` for the event
|
||||
* so it can be easily accessed from the timeline.
|
||||
*
|
||||
* @deprecated Not used by the rust crypto implementation.
|
||||
*/
|
||||
public verificationRequest?: VerificationRequest;
|
||||
|
||||
@@ -897,6 +900,8 @@ export class MatrixEvent extends TypedEventEmitter<MatrixEventEmittedEvents, Mat
|
||||
* @param userId - the user who received this event
|
||||
*
|
||||
* @returns a promise that resolves when the request is queued
|
||||
*
|
||||
* @deprecated Not used by the rust crypto implementation.
|
||||
*/
|
||||
public cancelAndResendKeyRequest(crypto: Crypto, userId: string): Promise<void> {
|
||||
const wireContent = this.getWireContent();
|
||||
@@ -1721,6 +1726,9 @@ export class MatrixEvent extends TypedEventEmitter<MatrixEventEmittedEvents, Mat
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Not used by the rust crypto implementation.
|
||||
*/
|
||||
public setVerificationRequest(request: VerificationRequest): void {
|
||||
this.verificationRequest = request;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user