Adapt listContacts to only show registered users

Fixes #1395
This commit is contained in:
AsamK 2024-01-31 20:49:12 +01:00
parent 00e71ed0fc
commit 0b33cb55b8

View file

@ -393,6 +393,7 @@ public class RecipientStore implements RecipientIdCreator, RecipientResolver, Re
) {
final var sqlWhere = new ArrayList<String>();
if (onlyContacts) {
sqlWhere.add("r.unregistered_timestamp IS NULL");
sqlWhere.add("(" + SQL_IS_CONTACT + ")");
sqlWhere.add("r.hidden = FALSE");
}