You've already forked matrix-js-sdk
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:
@@ -159,6 +159,14 @@ export class VerificationRequest extends EventEmitter {
|
|||||||
return 0;
|
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. */
|
/** current phase of the request. Some properties might only be defined in a current phase. */
|
||||||
get phase() {
|
get phase() {
|
||||||
return this._phase;
|
return this._phase;
|
||||||
|
|||||||
Reference in New Issue
Block a user