mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
Don't set keymatch to false if we get a pki failed error
This commit is contained in:
parent
10293c617a
commit
3934bdcbc6
2 changed files with 3 additions and 5 deletions
|
|
@ -632,11 +632,6 @@ func routingPacket (packet: MeshPacket, connectedNodeNum: Int64, context: NSMana
|
|||
}
|
||||
}
|
||||
fetchedMessage[0].ackError = Int32(routingMessage.errorReason.rawValue)
|
||||
if routingError == RoutingError.pkiFailed {
|
||||
fetchedMessage[0].toUser?.keyMatch = false
|
||||
fetchedMessage[0].toUser?.newPublicKey = fetchedMessage[0].publicKey
|
||||
}
|
||||
|
||||
if routingMessage.errorReason == Routing.Error.none {
|
||||
|
||||
fetchedMessage[0].receivedACK = true
|
||||
|
|
|
|||
|
|
@ -55,11 +55,14 @@ struct NodeDetail: View {
|
|||
.font(.caption)
|
||||
.foregroundStyle(.red)
|
||||
Text("Public Key\(user.publicKey?.base64EncodedString() ?? "Empty Key")")
|
||||
.font(.caption2)
|
||||
.monospaced()
|
||||
.allowsTightening(/*@START_MENU_TOKEN@*/true/*@END_MENU_TOKEN@*/)
|
||||
Text("New Key\(user.newPublicKey?.base64EncodedString() ?? "Empty Key")")
|
||||
.font(.caption2)
|
||||
.monospaced()
|
||||
.allowsTightening(/*@START_MENU_TOKEN@*/true/*@END_MENU_TOKEN@*/)
|
||||
|
||||
}
|
||||
} icon: {
|
||||
Image(systemName: "key.slash.fill")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue