mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
fix early ownerName null call
This commit is contained in:
parent
068a90f93b
commit
57030f90b6
1 changed files with 1 additions and 1 deletions
|
|
@ -263,7 +263,7 @@ class UIViewModel @Inject constructor(
|
|||
try {
|
||||
// Pull down our real node ID - This must be done AFTER reading the nodedb because we need the DB to find our nodeinof object
|
||||
nodeDB.setMyId(service.myId)
|
||||
val ownerName = nodeDB.ourNodeInfo.value?.user?.longName
|
||||
val ownerName = nodes[service.myId]?.user?.longName
|
||||
_ownerName.value = ownerName
|
||||
} catch (ex: Exception) {
|
||||
warn("Ignoring failure to get myId, service is probably just uninited... ${ex.message}")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue