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
@ -989,6 +989,9 @@ class ManagerImpl implements Manager {
|
||||
return null;
|
||||
}
|
||||
}).filter(Objects::nonNull).collect(Collectors.toSet());
|
||||
if (!recipients.isEmpty() && recipientIds.isEmpty()) {
|
||||
return List.of();
|
||||
}
|
||||
// refresh profiles of explicitly given recipients
|
||||
context.getProfileHelper().refreshRecipientProfiles(recipientIds);
|
||||
return account.getRecipientStore().getRecipients(onlyContacts, blocked, recipientIds, name);
|
||||
|
Loading…
x
Reference in New Issue
Block a user