mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
Update Meshtastic/Extensions/CoreData/NodeInfoEntityToNodeInfo.swift
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
bf55f3526d
commit
382402afa9
1 changed files with 1 additions and 1 deletions
|
|
@ -13,7 +13,7 @@ extension NodeInfoEntity {
|
|||
userProto.id = user.userId ?? ""
|
||||
userProto.longName = user.longName ?? ""
|
||||
userProto.shortName = user.shortName ?? ""
|
||||
userProto.hwModel = HardwareModel(rawValue: Int(user.hwModelId))!
|
||||
userProto.hwModel = HardwareModel(rawValue: Int(user.hwModelId)) ?? .unknown
|
||||
userProto.isLicensed = user.isLicensed
|
||||
userProto.role = Config.DeviceConfig.Role(rawValue: Int(user.role)) ?? .unknown
|
||||
userProto.publicKey = user.publicKey?.subdata(in: 0..<user.publicKey!.count) ?? Data()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue