mirror of
https://github.com/aljazceru/signal-cli.git
synced 2025-12-20 07:34:20 +01:00
Remove unnecessary isRegistered checks
This commit is contained in:
@@ -33,11 +33,6 @@ public class SendCommand implements DbusCommand {
|
||||
|
||||
@Override
|
||||
public int handleCommand(final Namespace ns, final Signal signal) {
|
||||
if (!signal.isRegistered()) {
|
||||
System.err.println("User is not registered.");
|
||||
return 1;
|
||||
}
|
||||
|
||||
if ((ns.getList("recipient") == null || ns.getList("recipient").size() == 0) && (
|
||||
ns.getBoolean("endsession") || ns.getString("group") == null
|
||||
)) {
|
||||
|
||||
Reference in New Issue
Block a user