MarekZegare4
|
d78e74d4cd
|
feat(companion): live location sharing via [LOC] messages
Share and track positions over the mesh through chat messages, separate
from (and parallel to) the 0-hop auto-advert.
Receive / tracking:
- geo::parseLocShare + [LOC] tag (sibling to [WAY]); LiveTrackStore (16
slots, DM=pubkey/verified, channel=name/best-effort, 20-min expiry).
- MyMesh parses [LOC] on DM + channel receive → UITask live-track table.
- NearbyScreen overlays shares onto contacts (fresher pin) and lists
non-contact senders; markers (*=DM, ~=chan) + "Loc:" age/verified line.
Send:
- Map menu "Share my pos" (one-shot) → Messages recipient picker.
- New Tools > Live Share tool: Receive (Track loc) + Send (Auto, Target,
Move/Min gap/Heartbeat, Share now). Target chosen via the Messages
picker (channel/DM). Movement-gated auto-send engine in UITask loop.
Map / navigation:
- Trail map shows tracked contacts as ◆ markers (ICON_MAP_CONTACT).
- Home "Map" page: mini-map preview + status line; ENTER opens the tool,
Cancel returns Home.
Prefs: track_shared_loc + loc_share_* (NodePrefs schema 0xC0DE0012).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
2026-06-22 10:13:09 +02:00 |
|