mirror of
https://github.com/aljazceru/signal-cli.git
synced 2026-01-15 20:04:18 +01:00
Restrict blocking of group to master device
This commit is contained in:
@@ -52,6 +52,8 @@ public class BlockCommand implements JsonRpcLocalCommand {
|
||||
for (var groupId : CommandUtil.getGroupIds(groupIdStrings)) {
|
||||
try {
|
||||
m.setGroupBlocked(groupId, true);
|
||||
} catch (NotMasterDeviceException e) {
|
||||
throw new UserErrorException("This command doesn't work on linked devices.");
|
||||
} catch (GroupNotFoundException e) {
|
||||
logger.warn("Group not found {}: {}", groupId.toBase64(), e.getMessage());
|
||||
} catch (IOException e) {
|
||||
|
||||
Reference in New Issue
Block a user