mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-06-11 12:43:12 +08:00
filter tags with union, not intersection
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
parent
ce993ea63a
commit
83d9cb55f1
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user