mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00:00
Remove unnecessary isRegistered checks
This commit is contained in:
parent
cc40c437d1
commit
fc76c9badf
2 changed files with 0 additions and 10 deletions
|
@ -33,11 +33,6 @@ public class SendCommand implements DbusCommand {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int handleCommand(final Namespace ns, final Signal signal) {
|
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) && (
|
if ((ns.getList("recipient") == null || ns.getList("recipient").size() == 0) && (
|
||||||
ns.getBoolean("endsession") || ns.getString("group") == null
|
ns.getBoolean("endsession") || ns.getString("group") == null
|
||||||
)) {
|
)) {
|
||||||
|
|
|
@ -27,11 +27,6 @@ public class UpdateGroupCommand implements DbusCommand {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int handleCommand(final Namespace ns, final Signal signal) {
|
public int handleCommand(final Namespace ns, final Signal signal) {
|
||||||
if (!signal.isRegistered()) {
|
|
||||||
System.err.println("User is not registered.");
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
byte[] groupId = null;
|
byte[] groupId = null;
|
||||||
if (ns.getString("group") != null) {
|
if (ns.getString("group") != null) {
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue