mirror of
https://github.com/AsamK/signal-cli.git
synced 2026-11-29 08:55:48 +00:00
Remove now unnecessary check for primary device from updateContact
Fixes #1880
This commit is contained in:
1 parent
f1de69d7ff
commit
eb52380ecf
5 files changed
+3
-11
No files matched your search
@@ -271,7 +271,7 @@ public interface Manager extends Closeable {
|
||||
final String nickGivenName,
|
||||
final String nickFamilyName,
|
||||
final String note
|
||||
) throws NotPrimaryDeviceException, UnregisteredRecipientException;
|
||||
) throws UnregisteredRecipientException;
|
||||
|
||||
void setContactsBlocked(
|
||||
Collection<RecipientIdentifier.Single> recipient,
|
||||
|
||||
@@ -1138,10 +1138,7 @@ public class ManagerImpl implements Manager {
|
||||
final String nickGivenName,
|
||||
final String nickFamilyName,
|
||||
final String note
|
||||
) throws NotPrimaryDeviceException, UnregisteredRecipientException {
|
||||
if (!account.isPrimaryDevice()) {
|
||||
throw new NotPrimaryDeviceException();
|
||||
}
|
||||
) throws UnregisteredRecipientException {
|
||||
context.getContactHelper()
|
||||
.setContactName(context.getRecipientHelper().resolveRecipient(recipient),
|
||||
givenName,
|
||||
|
||||
Reference in new issue
Block a user