Skip to content

Commit 6b93e11

Browse files
authored
feat(event): deprecate parameter and functions using legacy crypto (#4697)
1 parent ff1db2b commit 6b93e11

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/models/event.ts

+9-1
Original file line numberDiff line numberDiff line change
@@ -407,9 +407,12 @@ export class MatrixEvent extends TypedEventEmitter<MatrixEventEmittedEvents, Mat
407407
*/
408408
public forwardLooking = true;
409409

410-
/* If the event is a `m.key.verification.request` (or to_device `m.key.verification.start`) event,
410+
/**
411+
* If the event is a `m.key.verification.request` (or to_device `m.key.verification.start`) event,
411412
* `Crypto` will set this the `VerificationRequest` for the event
412413
* so it can be easily accessed from the timeline.
414+
*
415+
* @deprecated Not used by the rust crypto implementation.
413416
*/
414417
public verificationRequest?: VerificationRequest;
415418

@@ -897,6 +900,8 @@ export class MatrixEvent extends TypedEventEmitter<MatrixEventEmittedEvents, Mat
897900
* @param userId - the user who received this event
898901
*
899902
* @returns a promise that resolves when the request is queued
903+
*
904+
* @deprecated Not used by the rust crypto implementation.
900905
*/
901906
public cancelAndResendKeyRequest(crypto: Crypto, userId: string): Promise<void> {
902907
const wireContent = this.getWireContent();
@@ -1721,6 +1726,9 @@ export class MatrixEvent extends TypedEventEmitter<MatrixEventEmittedEvents, Mat
17211726
};
17221727
}
17231728

1729+
/**
1730+
* @deprecated Not used by the rust crypto implementation.
1731+
*/
17241732
public setVerificationRequest(request: VerificationRequest): void {
17251733
this.verificationRequest = request;
17261734
}

0 commit comments

Comments
 (0)