Don't abort on empty recipient unless there was also no group specified.

This commit is contained in:
Herohtar 2018-12-13 19:26:16 -06:00
parent fd550d6088
commit 25a137987b
No known key found for this signature in database
GPG key ID: 5C362C8125768A2B

View file

@ -46,7 +46,7 @@ public class SendCommand implements DbusCommand {
return 1; return 1;
} }
if (ns.getList("recipient") == null || ns.getList("recipient").size() == 0) { if ((ns.getList("recipient") == null || ns.getList("recipient").size() == 0) && ns.getString("group") == null) {
System.err.println("No recipients given"); System.err.println("No recipients given");
System.err.println("Aborting sending."); System.err.println("Aborting sending.");
return 1; return 1;