Skip to content

Commit

Permalink
Add display name to search
Browse files Browse the repository at this point in the history
  • Loading branch information
garthvh committed Aug 7, 2024
1 parent 91022d2 commit 6bb8d03
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions Meshtastic/Resources/DeviceHardware.json
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,14 @@
"activelySupported": true,
"displayName": "RadioMaster 900 Bandit Nano"
},
{
"hwModel": 66,
"hwModelSlug": "HELTEC_VISION_MASTER_T190",
"platformioTarget": "heltec-vision-master-T190",
"architecture": "esp32-s3",
"activelySupported": true,
"displayName": "Heltec Vision Master T190"
},
{
"hwModel": 67,
"hwModelSlug": "HELTEC_VISION_MASTER_E213",
Expand Down
2 changes: 1 addition & 1 deletion Meshtastic/Views/Messages/UserList.swift
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ struct UserList: View {
private func searchUserList() {

/// Case Insensitive Search Text Predicates
let searchPredicates = ["userId", "numString", "hwModel", "longName", "shortName"].map { property in
let searchPredicates = ["userId", "numString", "hwModel", "hwDisplayName", "longName", "shortName"].map { property in
return NSPredicate(format: "%K CONTAINS[c] %@", property, searchText)
}
/// Create a compound predicate using each text search preicate as an OR
Expand Down
2 changes: 1 addition & 1 deletion Meshtastic/Views/Nodes/NodeList.swift
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ struct NodeList: View {

private func searchNodeList() async {
/// Case Insensitive Search Text Predicates
let searchPredicates = ["user.userId", "user.numString", "user.hwModel", "user.longName", "user.shortName"].map { property in
let searchPredicates = ["user.userId", "user.numString", "user.hwModel", "user.hwDisplayName", "user.longName", "user.shortName"].map { property in
return NSPredicate(format: "%K CONTAINS[c] %@", property, searchText)
}
/// Create a compound predicate using each text search preicate as an OR
Expand Down

0 comments on commit 6bb8d03

Please sign in to comment.