fix: correct traceroute to/from order

pull/628/head
andrekir 2023-04-29 07:26:52 -03:00
rodzic 16787b23c8
commit 9dc1a45fe6
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -344,9 +344,9 @@ class UsersFragment : ScreenFragment("Users"), Logging {
val routeList = meshLog.routeDiscovery?.routeList ?: return@let
fun nodeName(num: Int) = model.nodeDB.nodesByNum?.get(num)?.user?.longName
var routeStr = "${nodeName(meshPacket.from)} --> "
var routeStr = "${nodeName(meshPacket.to)} --> "
routeList.forEach { num -> routeStr += "${nodeName(num)} --> " }
routeStr += "${nodeName(meshPacket.to)}"
routeStr += "${nodeName(meshPacket.from)}"
MaterialAlertDialogBuilder(requireContext())
.setTitle(R.string.traceroute)