Files
Meshtastic-Android/core
James Rich 175602102e Fix Phase 2b edge case: mostRecentPacketTime when all nodes have lastHeard=0
- Add takeIf check to distinguish lastHeard=0 (never heard) from no nodes
- Previously: maxOfOrNull returns 0, Elvis operator doesn't trigger (0 is not null)
- Now: takeIf { it > 0 } filters out zero, falling back to current time
- Ensures API returns meaningful timestamp instead of epoch 1970

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-05-21 15:54:50 -05:00
..