Remove this check: attachments could have no body
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user