chore: Follow up calculate file description

This commit is contained in:
Christian Kußowski 2026-02-14 09:01:23 +01:00
parent da8336b1fe
commit db4b3240c3
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652

View file

@ -14,7 +14,7 @@ extension FileDescriptionExtension on Event {
final filename = content.tryGet<String>('filename');
final body = calcUnlocalizedBody(hideReply: true, plaintextBody: true);
if (filename != body && filename != null && body.isNotEmpty) {
if (filename != body && filename != null && this.body.isNotEmpty) {
return body;
}
return null;