Skip to content

Commit

Permalink
set keys on create user catch
Browse files Browse the repository at this point in the history
  • Loading branch information
garthvh committed Sep 5, 2024
1 parent 6e60272 commit b32cabe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Meshtastic/Persistence/UpdateCoreData.swift
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,8 @@ func upsertNodeInfoPacket (packet: MeshPacket, context: NSManagedObjectContext)
} else {
if packet.from > Constants.minimumNodeNum {
let newUser = createUser(num: Int64(packet.from), context: context)
newNode.user?.pkiEncrypted = packet.pkiEncrypted
newNode.user?.publicKey = packet.publicKey
newNode.user = newUser
}
}
Expand Down

0 comments on commit b32cabe

Please sign in to comment.