Private
Public Access
1
0

Remove this check: attachments could have no body

This commit is contained in:
2025-06-17 20:52:21 -07:00
parent e1c579d23b
commit f0b7cff226

View File

@@ -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);
}
}
}
}