Skip to content

Commit 6d7699c

Browse files
feat(event): deprecate parameter and functions using legacy crypto (#4697) (#4700)
(cherry picked from commit 6b93e11) Co-authored-by: Florian D <florianduros@element.io>
1 parent 6b0d2a4 commit 6d7699c

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/models/event.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,9 +406,12 @@ export class MatrixEvent extends TypedEventEmitter<MatrixEventEmittedEvents, Mat
406406
*/
407407
public forwardLooking = true;
408408

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

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

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

0 commit comments

Comments
 (0)