Rename variable

This commit is contained in:
RMidhunSuresh 2023-05-17 16:07:56 +05:30
parent 7b7ace8951
commit ec2a9df4c8

View File

@ -75,11 +75,9 @@ export function tileClassForEntry(entry: TimelineEntry, options: Options): TileC
case "m.location": case "m.location":
return LocationTile; return LocationTile;
case "m.key.verification.request": case "m.key.verification.request":
const isCrossSigningEnabled = !options.session.features.crossSigning; const isCrossSigningDisabled = !options.session.features.crossSigning;
const userId = options.session.userId; const userId = options.session.userId;
if (isCrossSigningEnabled|| if (isCrossSigningDisabled || entry.sender === userId) {
// entry.isLoadedFromStorage ||
entry.sender === userId) {
return undefined; return undefined;
} }
return VerificationTile as unknown as TileConstructor; return VerificationTile as unknown as TileConstructor;