From f0b7cff2267a227e815fd93bbbe0aa5e0005804a Mon Sep 17 00:00:00 2001 From: James Magahern Date: Tue, 17 Jun 2025 20:52:21 -0700 Subject: [PATCH] Remove this check: attachments could have no body --- src/application/main-window.vala | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/application/main-window.vala b/src/application/main-window.vala index 4d70318..cab37bd 100644 --- a/src/application/main-window.vala +++ b/src/application/main-window.vala @@ -60,11 +60,6 @@ public class MainWindow : Adw.ApplicationWindow // Strip empty space at the beginning and end of the body body = body.strip(); - if (body.length == 0) { - GLib.warning("Message body is empty"); - return; - } - if (transcript_container_view.transcript_view.model == null) { GLib.warning("No conversation selected"); return; @@ -82,4 +77,4 @@ public class MainWindow : Adw.ApplicationWindow GLib.warning("Failed to send message: %s", e.message); } } -} \ No newline at end of file +}