Skip to content

An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.

filter tags with union, not intersection

21pages83d9cb55f1ae
diff --git a/flutter/lib/common/widgets/peers_view.dart b/flutter/lib/common/widgets/peers_view.dart
index b4fd8e1d4..0e4898fc2 100644
--- a/flutter/lib/common/widgets/peers_view.dart
+++ b/flutter/lib/common/widgets/peers_view.dart
@@ -421,15 +421,12 @@ class AddressBookPeersView extends BasePeersView {
if (selectedTags.isEmpty) {
return true;
}
- if (idents.isEmpty) {
- return false;
- }
for (final tag in selectedTags) {
- if (!idents.contains(tag)) {
- return false;
+ if (idents.contains(tag)) {
+ return true;
}
}
- return true;
+ return false;
}
}