mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00:00
Improve number filtering of listContacts command
If the given number is not registered, don't output all recipients
This commit is contained in:
parent
aaa6412469
commit
4ea3d94d07
1 changed files with 3 additions and 0 deletions
|
@ -989,6 +989,9 @@ class ManagerImpl implements Manager {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}).filter(Objects::nonNull).collect(Collectors.toSet());
|
}).filter(Objects::nonNull).collect(Collectors.toSet());
|
||||||
|
if (!recipients.isEmpty() && recipientIds.isEmpty()) {
|
||||||
|
return List.of();
|
||||||
|
}
|
||||||
// refresh profiles of explicitly given recipients
|
// refresh profiles of explicitly given recipients
|
||||||
context.getProfileHelper().refreshRecipientProfiles(recipientIds);
|
context.getProfileHelper().refreshRecipientProfiles(recipientIds);
|
||||||
return account.getRecipientStore().getRecipients(onlyContacts, blocked, recipientIds, name);
|
return account.getRecipientStore().getRecipients(onlyContacts, blocked, recipientIds, name);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue