diff --git a/documentation/additional-features.md b/documentation/additional-features.md index 3b984c8c..e01949b6 100644 --- a/documentation/additional-features.md +++ b/documentation/additional-features.md @@ -163,7 +163,7 @@ Maintains an in-memory LRU cache of up to 50 contacts, each with up to 100 route Each route keeps delivery and failure counts that fade over time (half their weight per day, at most 16 recent results). For each send attempt a route is chosen by Thompson sampling over those counts, adjusted slightly for speed and for what the radio currently hears. There are no user-tunable weights. A route is deleted only when it keeps failing and hasn't delivered for a week. Flood deliveries that receive an ACK credit the specific return path. Details: [Auto route selection](routing-paths.md#auto-route-selection). Used internally for: -- **Auto route rotation**: Picks a route for each attempt; retries usually move to a different route, and the last attempt floods +- **Auto route rotation**: Picks a route for each direct attempt; retries usually move to a different route, then the flood attempts run - **Flood statistics**: Tracks flood deliveries and failures --- @@ -174,16 +174,16 @@ Used internally for: Handles reliable delivery of outgoing direct messages: 1. Assigns a UUID and sends immediately. Only one message per contact can be in-flight at a time (avoids overflowing the firmware's 8-entry ACK table); subsequent messages are queued 2. Listens for ACK frames matched via SHA-256 hash of `[timestamp][attempt][text][sender_pubkey]` -3. On timeout, retries with exponential backoff: `1000 × 2^retryCount` ms (1s, 2s, 4s, 8s...) -4. Each retry may use a different path (via path history diversity window) -5. After max retries: marks failed but keeps a **30-second grace window** during which a late ACK can still resolve the message to "delivered". Optionally clears the contact's path +3. On timeout, retries with exponential backoff: `1000 × 2^retryCount` ms (1s, 2s, 4s, 8s...), capped at 32 seconds +4. Each direct retry may use a different path (via path history diversity window) when auto route rotation is on +5. After the configured direct and flood attempts: marks failed but keeps a **30-second grace window** during which a late ACK can still resolve the message to "delivered". Optionally clears the contact's path 6. Reports RTT and path data for quality learning 7. Maintains an ACK hash history (last 50 entries) to handle duplicate ACKs -### Configurable Settings (App Settings → Messaging) -- Max retries (2–10, default 5) +### Configurable Settings (App Settings → Routing) +- Direct attempts (0–15, default 4) and flood attempts (0–10, default 1), set separately from auto route rotation - Clear path on max retry (on/off) -- Auto route rotation with weight parameters +- Auto route rotation --- diff --git a/documentation/channels.md b/documentation/channels.md index 3f682c25..6f324f7d 100644 --- a/documentation/channels.md +++ b/documentation/channels.md @@ -101,7 +101,7 @@ Messages also show a region label when known, independently of message tracing. ### Message Types in Chat -- **Plain text** with linkified URLs +- **Plain text** with linkified URLs and interactive decimal GPS coordinates (tap to open the **Location** map, long-press for **Copy location** / **Open in maps**; see [Inline GPS Coordinates](chat-and-messaging.md#inline-gps-coordinates)) - **GIFs** (`g:{gifId}`) rendered inline via Giphy CDN - **Location pins** (`m:{lat},{lon}|{label}|`) shown as tappable location cards - **Mesh images** sent as GRP_DATA chunks and reconstructed locally ([setup and limitations](image-messages.md)) @@ -128,7 +128,7 @@ The app bar overflow menu (⋮) has **Filter messages in this channel** (shown w ### Channel Auto-Resend -With **Resend channel messages until they travel far enough** on (App Settings → Messaging), the app waits after each channel send and checks how far the message was heard repeated. If no repeat reached the required hop count, it sends the message again, up to the configured number of times. +With **Resend channel messages until they travel far enough** on (App Settings → Routing), the app waits after each channel send and checks how far the message was heard repeated. If no repeat reached the required hop count, it sends the message again, up to the configured number of times. Where your radio only hears nearby repeaters, turn on **Also count different nearby repeaters**: the message then also counts as sent once the required number of *different* first-hop repeaters have repeated it, across all attempts. Your own radio's echo and zero-hop echoes don't count. @@ -144,6 +144,8 @@ Where your radio only hears nearby repeaters, turn on **Also count different nea | Mark as Unread | Incoming messages only | Marks this message and all subsequent incoming messages as unread | | Delete | All messages | Removes locally (not from mesh) | +Long-pressing directly on a detected GPS coordinate opens the coordinate action sheet (**Copy location** and **Open in maps**) instead of this message menu; long-press non-coordinate text in the message (or right-click on desktop) for channel message actions. + ## Communities Communities are a layer above channels that provide a private namespace. diff --git a/documentation/chat-and-messaging.md b/documentation/chat-and-messaging.md index acd1eae9..40826682 100644 --- a/documentation/chat-and-messaging.md +++ b/documentation/chat-and-messaging.md @@ -35,7 +35,7 @@ Below the app bar, above the messages, a strip shows **Compression: Off**, **SMA - **Incoming messages**: Left-aligned, grey background with a colored avatar (initial letter or first emoji of sender name; color is deterministic from a hash of the sender name) - Long-press a message and choose **Bookmark** to show a yellow bookmark on the bubble. **Show bookmarks** in the chat menu toggles a filter for bookmarked messages; use **Bookmarks** in the Channels screen menu to browse saved messages, including those from deleted contacts or channels. From the bookmarks list, copy a message with its copy button. It is ordered oldest-to-newest and opens at the newest message. The Export screen can save or share a dated Markdown file, grouped by contact and then channel, with linked URLs and URL-image embeds. Links remain tappable, and supported URL-image previews are shown when **Load images from links** is enabled in App Settings. - Bubble width capped at 72% of screen width -- Hyperlinks rendered as tappable green underlined text +- Hyperlinks rendered as tappable underlined text; inline decimal GPS coordinates are rendered as bold underlined links (see [Inline GPS Coordinates](#inline-gps-coordinates)) - Message text follows the system font size (Android/iOS accessibility text size); pinch-to-zoom scales on top of it - **Pinch-to-zoom**: Two-finger zoom (0.8x–1.8x) and double-tap to reset - **Jump to bottom**: Floating button appears when scrolled away from the bottom @@ -61,12 +61,40 @@ The composer is a rounded bubble at the bottom of the chat with one round button | Type | Wire Format | Display | |---|---|---| -| Plain text | Raw UTF-8 string | Inline text with link detection | +| Plain text | Raw UTF-8 string | Inline text with URL and decimal coordinate detection | | URL image preview | Image URL in text (per-contact opt-in; requires internet) | Downloaded inline preview | | GIF | `g:` | Inline GIF image from Giphy CDN | | Location pin | `m:,\|