refactor: ensure backward compatibility for PKC encryption

This commit is contained in:
andrekir 2024-09-22 23:01:33 -03:00
parent 6e2848a54a
commit 587c6c91f4
4 changed files with 13 additions and 6 deletions

View file

@ -79,6 +79,8 @@ data class NodeEntity(
return (if (brightness > 0.5) Color.BLACK else Color.WHITE) to Color.rgb(r, g, b)
}
val hasPKC get() = !user.publicKey.isEmpty
val batteryLevel get() = deviceMetrics.batteryLevel
val voltage get() = deviceMetrics.voltage
val batteryStr get() = if (batteryLevel in 1..100) "$batteryLevel%" else ""