feat: tag node names when NodeInfo is received via MQTT

This commit is contained in:
andrekir
2024-02-28 17:52:49 -03:00
parent 6cd972522d
commit 85dacaf53b

View File

@@ -649,6 +649,7 @@ class MeshService : Service(), Logging {
Portnums.PortNum.NODEINFO_APP_VALUE ->
if (!fromUs) {
val u = MeshProtos.User.parseFrom(data.payload)
.copy { if (packet.viaMqtt) longName = "$longName (MQTT)" }
handleReceivedUser(packet.from, u, packet.channel)
}