chore: Do only show fileDescription if filename is not null

pull/1577/head
Krille 6 months ago
parent 0d438ee1ac
commit 582f4fb9ed
No known key found for this signature in database
GPG Key ID: E067ECD60F1A0652

@ -13,7 +13,7 @@ extension FileDescriptionExtension on Event {
final filename = content.tryGet<String>('filename');
final body = content.tryGet<String>('body');
if (filename != body && body != null) return body;
if (filename != body && body != null && filename != null) return body;
return null;
}
}

Loading…
Cancel
Save