mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-05-12 16:55:02 -04:00
The MIN_CONTEXT_MESSAGES fallback (pull 3 most recent history messages when unread < 3) was injecting already-read historical messages into the MessagingStyle. On Android Auto, Gearhead reads every message in the style aloud and shows them stacked on the HUN, so old context was announced alongside the new one. Just show the unread messages (up to MAX_HISTORY_MESSAGES). If nothing is unread, don't post at all — we only call this from paths that already check for fresh inbound content. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>