mirror of
https://github.com/AsamK/signal-cli
synced 2025-09-01 20:10:39 +00:00
Return an empty string if the contact is unknown
This commit is contained in:
parent
d53af19319
commit
3a5ba0de48
1 changed files with 1 additions and 1 deletions
|
@ -779,7 +779,7 @@ class Manager implements Signal {
|
||||||
public String getContactName(String number) {
|
public String getContactName(String number) {
|
||||||
ContactInfo contact = contactStore.getContact(number);
|
ContactInfo contact = contactStore.getContact(number);
|
||||||
if (contact == null) {
|
if (contact == null) {
|
||||||
return number;
|
return "";
|
||||||
} else {
|
} else {
|
||||||
return contact.name;
|
return contact.name;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue