mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-11-20 03:25:52 +01:00
Don't assume context is always available
This commit is contained in:
parent
823a07d712
commit
0f27b68a37
@ -55,7 +55,7 @@ export class VerificationTile extends SimpleTile {
|
||||
|
||||
get status(): Status {
|
||||
const contextEventEntry = this.lowerEntry.contextForEntries?.[0];
|
||||
if (contextEventEntry.eventType === VerificationEventType.Cancel) {
|
||||
if (contextEventEntry?.eventType === VerificationEventType.Cancel) {
|
||||
this._status = Status.Cancelled;
|
||||
this.isCancelledByUs = false;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user