chore: Follow up file description

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

View file

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