Refactor: Remove dispatcher and use conditional start destination (#2309)

Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
This commit is contained in:
James Rich 2025-07-01 15:55:22 +00:00 committed by GitHub
parent 8b095aba09
commit 128aceb4b7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 14 additions and 30 deletions

View file

@ -210,7 +210,7 @@ class MetricsViewModel @Inject constructor(
private val firmwareReleaseRepository: FirmwareReleaseRepository,
private val preferences: SharedPreferences,
) : ViewModel(), Logging {
private val destNum = savedStateHandle.toRoute<NodesRoutes.NodeDetail>().destNum
private val destNum = savedStateHandle.toRoute<NodesRoutes.NodeDetailGraph>().destNum
private fun MeshLog.hasValidTraceroute(): Boolean = with(fromRadio.packet) {
hasDecoded() && decoded.wantResponse && from == 0 && to == destNum