mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-30 11:00:38 +00:00
Rename main/master device to primary device
This commit is contained in:
parent
ad65eb7ea2
commit
9ad24614cb
22 changed files with 74 additions and 74 deletions
|
@ -7,7 +7,7 @@ import org.asamk.signal.commands.exceptions.CommandException;
|
|||
import org.asamk.signal.commands.exceptions.UnexpectedErrorException;
|
||||
import org.asamk.signal.commands.exceptions.UserErrorException;
|
||||
import org.asamk.signal.manager.Manager;
|
||||
import org.asamk.signal.manager.api.NotMasterDeviceException;
|
||||
import org.asamk.signal.manager.api.NotPrimaryDeviceException;
|
||||
import org.asamk.signal.manager.api.UnregisteredRecipientException;
|
||||
import org.asamk.signal.manager.groups.GroupNotFoundException;
|
||||
import org.asamk.signal.output.OutputWriter;
|
||||
|
@ -41,7 +41,7 @@ public class UnblockCommand implements JsonRpcLocalCommand {
|
|||
final var recipients = CommandUtil.getSingleRecipientIdentifiers(contacts, m.getSelfNumber());
|
||||
try {
|
||||
m.setContactsBlocked(recipients, false);
|
||||
} catch (NotMasterDeviceException e) {
|
||||
} catch (NotPrimaryDeviceException e) {
|
||||
throw new UserErrorException("This command doesn't work on linked devices.");
|
||||
} catch (IOException e) {
|
||||
throw new UnexpectedErrorException("Failed to sync unblock to linked devices: " + e.getMessage(), e);
|
||||
|
@ -53,7 +53,7 @@ public class UnblockCommand implements JsonRpcLocalCommand {
|
|||
final var groupIds = CommandUtil.getGroupIds(groupIdStrings);
|
||||
try {
|
||||
m.setGroupsBlocked(groupIds, false);
|
||||
} catch (NotMasterDeviceException e) {
|
||||
} catch (NotPrimaryDeviceException e) {
|
||||
throw new UserErrorException("This command doesn't work on linked devices.");
|
||||
} catch (GroupNotFoundException e) {
|
||||
logger.warn("Unknown group id: {}", e.getMessage());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue