mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
only hide unmonitored nodes when no messages
This commit is contained in:
parent
9fd6f72b0f
commit
b877aafc3f
1 changed files with 2 additions and 1 deletions
|
|
@ -337,7 +337,8 @@ struct FilteredUserList<Content: View>: View {
|
|||
}
|
||||
}
|
||||
// Always apply unmessagable and connected node filters
|
||||
let isUnmessagablePredicate = NSPredicate(format: "unmessagable == NO")
|
||||
// Only hide unmessagable nodes if they have 0 messages
|
||||
let isUnmessagablePredicate = NSPredicate(format: "unmessagable == NO AND (SUBQUERY(messageList, $msg, $msg.messageId != nil).@count == 0)")
|
||||
predicates.append(isUnmessagablePredicate)
|
||||
let isIgnoredPredicate = NSPredicate(format: "userNode.ignored == NO")
|
||||
predicates.append(isIgnoredPredicate)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue