filter tags with union, not intersection

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages 2023-08-22 08:54:01 +08:00
parent ce993ea63a
commit 83d9cb55f1

View File

@ -421,15 +421,12 @@ class AddressBookPeersView extends BasePeersView {
if (selectedTags.isEmpty) { if (selectedTags.isEmpty) {
return true; return true;
} }
if (idents.isEmpty) {
return false;
}
for (final tag in selectedTags) { for (final tag in selectedTags) {
if (!idents.contains(tag)) { if (idents.contains(tag)) {
return false; return true;
} }
} }
return true; return false;
} }
} }