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":
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;