Remove now unnecessary check for primary device from updateContact

Fixes #1880
This commit is contained in:
AsamK committed 2025-12-08 17:08:38 +01:00
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,