mirror of
https://github.com/AsamK/signal-cli.git
synced 2026-11-29 08:55:48 +00:00
Fix hiding contacts
This commit is contained in:
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) {
|
||||
|
||||
Reference in new issue
Block a user