From 582f4fb9ed837b0ca7702e21f362f19fb608dc8f Mon Sep 17 00:00:00 2001 From: Krille Date: Thu, 30 Jan 2025 08:22:14 +0100 Subject: [PATCH] chore: Do only show fileDescription if filename is not null --- lib/utils/file_description.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils/file_description.dart b/lib/utils/file_description.dart index 5a259a02a..a1d766aee 100644 --- a/lib/utils/file_description.dart +++ b/lib/utils/file_description.dart @@ -13,7 +13,7 @@ extension FileDescriptionExtension on Event { final filename = content.tryGet('filename'); final body = content.tryGet('body'); - if (filename != body && body != null) return body; + if (filename != body && body != null && filename != null) return body; return null; } }