Skip to content

Commit

Permalink
Add lock to node list
Browse files Browse the repository at this point in the history
  • Loading branch information
garthvh committed Sep 5, 2024
1 parent b32cabe commit d95cf2d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Meshtastic/Views/Nodes/Helpers/NodeListItem.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,22 @@ struct NodeListItem: View {
}
VStack(alignment: .leading) {
HStack {
if node.user?.pkiEncrypted ?? false {
if !(node.user?.keyMatch ?? false) {
/// Public Key on the User and the Public Key on the Last Message don't match
Image(systemName: "key.slash")
.foregroundColor(.red)
} else {
Image(systemName: "lock.fill")
.foregroundColor(.green)
}
} else {
Image(systemName: "lock.open.fill")
.foregroundColor(.yellow)
}
Text(node.user?.longName ?? "unknown".localized)
.font(.headline)
.fontWeight(.regular)
.allowsTightening(true)
if node.favorite {
Spacer()
Expand Down

0 comments on commit d95cf2d

Please sign in to comment.