Fix hiding contacts

This commit is contained in:
AsamK committed 2025-09-15 11:34:27 +02:00
1 parent 7a82283762
commit 1af03e3e16
2 files changed
+4 -9

No files matched your search

@@ -60,13 +60,7 @@ public class UpdateContactCommand implements JsonRpcLocalCommand {
var nickGivenName = ns.getString("nick-given-name");
var nickFamilyName = ns.getString("nick-family-name");
var note = ns.getString("note");
if (givenName != null
|| familyName != null
|| nickGivenName != null
|| nickFamilyName != null
|| note != null) {
m.setContactName(recipient, givenName, familyName, nickGivenName, nickFamilyName, note);
}
m.setContactName(recipient, givenName, familyName, nickGivenName, nickFamilyName, note);
} catch (IOException e) {
throw new IOErrorException("Update contact error: " + e.getMessage(), e);
} catch (NotPrimaryDeviceException e) {