Repository navigation
feat(messages): share the peer's contact before a direct message - #1554
danditomaso wants to merge 2 commits into
Conversation
Before each DM (and retry), firmware 2.7.12+ gets the peer as a SharedContact (add_contact), skipped without a public key so the radio's stored key is never cleared. Older firmware favorites the peer of a legacy DM unless the local role is CLIENT_BASE. Matches Android's SendMessageUseCase (meshtastic/design#39). The JS facade now routes add_contact to AdminApi.addContact.
|
@danditomaso is attempting to deploy a commit to the Meshtastic Team on Vercel. A member of the Team first needs to authorize it. |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
As on Android, a direct message now waits (up to 3 s) for the contact share or favorite, so the radio has the peer's key before the text and can PKI-encrypt it. A failed or stuck share still sends the message. DMs to our own node no longer share or favorite it.
Before each direct message (and retry), the client now sends the peer to the local radio as a SharedContact on firmware 2.7.12+, so its NodeDB keeps the peer and key. It's skipped when we have no public key, so the radio's stored key is never cleared. On older firmware it favourites the peer of a legacy DM instead, except on CLIENT_BASE. This matches Android (meshtastic/design#39), and the JS facade now routes
add_contact.Refs #1240
Summary by CodeRabbit