chore: Follow up file description
This commit is contained in:
parent
db4b3240c3
commit
acda3e40ff
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue