mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
fix crash
This commit is contained in:
parent
b877aafc3f
commit
1e6cbcf06f
1 changed files with 2 additions and 2 deletions
|
|
@ -337,8 +337,8 @@ struct FilteredUserList<Content: View>: View {
|
|||
}
|
||||
}
|
||||
// Always apply unmessagable and connected node filters
|
||||
// Only hide unmessagable nodes if they have 0 messages
|
||||
let isUnmessagablePredicate = NSPredicate(format: "unmessagable == NO AND (SUBQUERY(messageList, $msg, $msg.messageId != nil).@count == 0)")
|
||||
// Show unmessagable nodes only if they have messages, otherwise hide them
|
||||
let isUnmessagablePredicate = NSPredicate(format: "unmessagable == NO OR ((SUBQUERY(receivedMessages, $msg, $msg.messageId != nil).@count > 0) OR (SUBQUERY(sentMessages, $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