mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
Update Meshtastic/Views/Messages/UserList.swift
Co-authored-by: Blake McAnally <bwm003@gmail.com>
This commit is contained in:
parent
0ffd3a06d0
commit
54af67284b
1 changed files with 7 additions and 8 deletions
|
|
@ -271,14 +271,13 @@ struct UserList: View {
|
|||
predicates.append(compoundPredicate)
|
||||
}
|
||||
/// Hops Away
|
||||
if hopsAway > -1.0 {
|
||||
if hopsAway == 0.0 {
|
||||
let hopsAwayPredicate = NSPredicate(format: "userNode.hopsAway == %i", Int32(hopsAway))
|
||||
predicates.append(hopsAwayPredicate)
|
||||
} else {
|
||||
let hopsAwayPredicate = NSPredicate(format: "userNode.hopsAway > 0 AND userNode.hopsAway <= %i", Int32(hopsAway))
|
||||
predicates.append(hopsAwayPredicate)
|
||||
}
|
||||
if hopsAway == 0.0 {
|
||||
let hopsAwayPredicate = NSPredicate(format: "userNode.hopsAway == %i", Int32(hopsAway))
|
||||
predicates.append(hopsAwayPredicate)
|
||||
} else if hopsAway > -1.0 {
|
||||
let hopsAwayPredicate = NSPredicate(format: "userNode.hopsAway > 0 AND userNode.hopsAway <= %i", Int32(hopsAway))
|
||||
predicates.append(hopsAwayPredicate)
|
||||
}
|
||||
}
|
||||
/// Online
|
||||
if isOnline {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue