1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-12-04 05:02:41 +03:00

Expose the request event more readily for consumers

This commit is contained in:
Travis Ralston
2020-01-23 20:05:56 -07:00
parent c5cbe48668
commit 6af6e99480

View File

@@ -159,6 +159,14 @@ export class VerificationRequest extends EventEmitter {
return 0;
}
/**
* The key verification request event.
* @returns {MatrixEvent} The request event, or falsey if not found.
*/
get requestEvent() {
return this._getEventByEither(REQUEST_TYPE);
}
/** current phase of the request. Some properties might only be defined in a current phase. */
get phase() {
return this._phase;