From ec2a9df4c83134eb9856ad4431831cf3de0b1260 Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Wed, 17 May 2023 16:07:56 +0530 Subject: [PATCH] Rename variable --- src/domain/session/room/timeline/tiles/index.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/domain/session/room/timeline/tiles/index.ts b/src/domain/session/room/timeline/tiles/index.ts index 1a52370a..57e5b27f 100644 --- a/src/domain/session/room/timeline/tiles/index.ts +++ b/src/domain/session/room/timeline/tiles/index.ts @@ -75,11 +75,9 @@ export function tileClassForEntry(entry: TimelineEntry, options: Options): TileC case "m.location": return LocationTile; case "m.key.verification.request": - const isCrossSigningEnabled = !options.session.features.crossSigning; + const isCrossSigningDisabled = !options.session.features.crossSigning; const userId = options.session.userId; - if (isCrossSigningEnabled|| - // entry.isLoadedFromStorage || - entry.sender === userId) { + if (isCrossSigningDisabled || entry.sender === userId) { return undefined; } return VerificationTile as unknown as TileConstructor;