mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 10:30: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
|
@ -12,7 +12,7 @@ import org.asamk.signal.manager.api.InactiveGroupLinkException;
|
|||
import org.asamk.signal.manager.api.InvalidDeviceLinkException;
|
||||
import org.asamk.signal.manager.api.Message;
|
||||
import org.asamk.signal.manager.api.MessageEnvelope;
|
||||
import org.asamk.signal.manager.api.NotMasterDeviceException;
|
||||
import org.asamk.signal.manager.api.NotPrimaryDeviceException;
|
||||
import org.asamk.signal.manager.api.Pair;
|
||||
import org.asamk.signal.manager.api.RecipientIdentifier;
|
||||
import org.asamk.signal.manager.api.SendGroupMessageResults;
|
||||
|
@ -409,14 +409,14 @@ public class DbusManagerImpl implements Manager {
|
|||
@Override
|
||||
public void setContactName(
|
||||
final RecipientIdentifier.Single recipient, final String name
|
||||
) throws NotMasterDeviceException {
|
||||
) throws NotPrimaryDeviceException {
|
||||
signal.setContactName(recipient.getIdentifier(), name);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setContactsBlocked(
|
||||
final Collection<RecipientIdentifier.Single> recipients, final boolean blocked
|
||||
) throws NotMasterDeviceException, IOException {
|
||||
) throws NotPrimaryDeviceException, IOException {
|
||||
for (final var recipient : recipients) {
|
||||
signal.setContactBlocked(recipient.getIdentifier(), blocked);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue