mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00:00
Extract ContactHelper and IncomingMessageHandler
This commit is contained in:
parent
debbaa81ba
commit
8bc6c0abcb
21 changed files with 954 additions and 780 deletions
|
@ -253,6 +253,8 @@ public class DbusSignalImpl implements Signal {
|
|||
m.setContactBlocked(getSingleRecipientIdentifier(number, m.getUsername()), blocked);
|
||||
} catch (NotMasterDeviceException e) {
|
||||
throw new Error.Failure("This command doesn't work on linked devices.");
|
||||
} catch (IOException e) {
|
||||
throw new Error.Failure(e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -262,6 +264,8 @@ public class DbusSignalImpl implements Signal {
|
|||
m.setGroupBlocked(getGroupId(groupId), blocked);
|
||||
} catch (GroupNotFoundException e) {
|
||||
throw new Error.GroupNotFound(e.getMessage());
|
||||
} catch (IOException e) {
|
||||
throw new Error.Failure(e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue