Geohash count: use the same pruned/sorted list for toolbar and peer list (visibleGeohashPeople) to ensure consistency

This commit is contained in:
jack
2025-08-22 12:51:40 +02:00
parent 16fdb7b49e
commit 4bfe9ac80d
3 changed files with 17 additions and 2 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ struct GeohashPeopleList: View {
}
return nil
}()
let ordered = viewModel.geohashPeople.sorted { a, b in
let ordered = viewModel.visibleGeohashPeople().sorted { a, b in
if let me = myHex {
if a.id == me && b.id != me { return true }
if b.id == me && a.id != me { return false }