Improve number filtering of listContacts command

If the given number is not registered, don't output all recipients
This commit is contained in:
AsamK 2022-06-13 15:35:25 +02:00
parent aaa6412469
commit 4ea3d94d07

View file

@ -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);