mirror of
https://github.com/aljazceru/signal-cli.git
synced 2026-01-31 11:34:21 +01:00
Restrict blocking of group to master device
This commit is contained in:
@@ -184,7 +184,7 @@ public interface Manager extends Closeable {
|
||||
|
||||
void setGroupBlocked(
|
||||
GroupId groupId, boolean blocked
|
||||
) throws GroupNotFoundException, IOException;
|
||||
) throws GroupNotFoundException, IOException, NotMasterDeviceException;
|
||||
|
||||
void setExpirationTimer(
|
||||
RecipientIdentifier.Single recipient, int messageExpirationTimer
|
||||
|
||||
@@ -714,7 +714,10 @@ public class ManagerImpl implements Manager {
|
||||
@Override
|
||||
public void setGroupBlocked(
|
||||
final GroupId groupId, final boolean blocked
|
||||
) throws GroupNotFoundException, IOException {
|
||||
) throws GroupNotFoundException, IOException, NotMasterDeviceException {
|
||||
if (!account.isMasterDevice()) {
|
||||
throw new NotMasterDeviceException();
|
||||
}
|
||||
groupHelper.setGroupBlocked(groupId, blocked);
|
||||
// TODO cycle our profile key
|
||||
syncHelper.sendBlockedList();
|
||||
|
||||
Reference in New Issue
Block a user