mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-05-12 08:42:01 -04:00
rememberDataPacket() was invoking handlePacketNotification() for outgoing packets too, which made our own reply race with the cancel issued by ReplyReceiver and repost the conversation with ourselves as the visible sender (lastMessage.node == ourNode). Also harden ensureShortcutForNotification for DMs: the remote contact is deterministic from contactKey (channel + nodeId), so derive the shortcut Person from the resolved contact node rather than whatever message happens to be newest in history. This keeps the Android Auto HUN labelled correctly even if the message list ends with an outgoing packet. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>