From fa01a6211ee3cb251644a595328816b72c254319 Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Mon, 19 Dec 2022 18:54:41 +0000 Subject: [PATCH] `verified` can be null --- src/components/views/rooms/EventTile.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/views/rooms/EventTile.tsx b/src/components/views/rooms/EventTile.tsx index a5699ecfee..3a6635ada7 100644 --- a/src/components/views/rooms/EventTile.tsx +++ b/src/components/views/rooms/EventTile.tsx @@ -232,7 +232,7 @@ interface IState { // Whether the action bar is focused. actionBarFocused: boolean; // Whether the event's sender has been verified. - verified: string; + verified: string | null; // The Relations model from the JS SDK for reactions to `mxEvent` reactions?: Relations | null | undefined; @@ -278,7 +278,8 @@ export class UnwrappedEventTile extends React.Component this.state = { // Whether the action bar is focused. actionBarFocused: false, - // Whether the event's sender has been verified. + // Whether the event's sender has been verified. `null` if no attempt has yet been made to verify + // (including if the event is not encrypted). verified: null, // The Relations model from the JS SDK for reactions to `mxEvent` reactions: this.getReactions(),