Fix review findings in channel notification modes
- Detect mentions on the original text, as @[name] or a whole-word @name - Save and restore the full mode map in review mode - Open the mode picker from the chat bell and show the mode in its tooltip - Share one mode picker sheet; fix the stale sheet context - Persist modes by name and skip unknown entries - Keep writing muted_channels so older builds keep the user's mutes - Remove the muteChannel/unmuteChannel/isChannelMuted shims - Update notifications docs to match the behaviour
This commit is contained in:
1 parent
705bff2f15
commit
f667320608
32 files changed
+502
-196
No files matched your search
@@ -42,7 +42,7 @@ Message notifications can be answered without opening the app, from the notifica
|
||||
- **Reply** sends through the connected radio exactly like the chat screen: same length limits, SMAZ and Cyr2Lat handling, and retries. Your reply is then added to the notification.
|
||||
- **Replies over the message limit** are split at word boundaries into up to 3 messages. Longer replies are not sent; a "Reply not sent" notification asks you to open the app.
|
||||
- **Mark as read** clears the unread count on the phone only. MeshCore has no read receipts, so nothing is sent over the mesh.
|
||||
- **Mute channel** (phone and watch) mutes that channel, the same as the bell icon in the channel chat.
|
||||
- **Mute channel** (phone and watch) sets that channel to **Muted**, the same as choosing Muted from the bell icon in the channel chat.
|
||||
- If the radio is disconnected, the conversation is no longer on the radio, the radio reports a send error, or the app isn't running, a "Reply not sent" notification explains why. The reply is not queued. If a split reply fails partway, earlier parts may already have been sent.
|
||||
- Replies are sent as typed; composer translation is not applied.
|
||||
|
||||
@@ -106,16 +106,17 @@ Each channel supports three notification modes:
|
||||
| Mode | Icon | Behavior |
|
||||
|---|---|---|
|
||||
| **All messages** | 🔔 | Receive notifications for every message |
|
||||
| **Mentions only** | 🔔! | Only notify when someone mentions you with "@[yourname]" |
|
||||
| **Mentions only** | 🔔! | Only notify when a message mentions your name (see below) |
|
||||
| **Muted** | 🔕 | No notifications |
|
||||
|
||||
Set the mode from:
|
||||
|
||||
- The notifications icon in the channel chat app bar (tap to cycle through modes)
|
||||
- The notifications icon in the channel chat app bar (tap to open the mode picker)
|
||||
- Long-press a channel in the channels list → **Notification settings** → select mode
|
||||
- Channel notification actions (Android)
|
||||
|
||||
Mentions are detected by looking for "@[yourname]" (username in brackets, case-insensitive).
|
||||
The Android **Mute channel** notification action sets the channel to **Muted**; it cannot choose another mode.
|
||||
|
||||
A message mentions you if it contains `@[yourname]` or `@yourname`, case-insensitively. The plain `@yourname` form must stand alone as a word, so `@bobby` does not mention `bob` and `x@bob.com` is not a mention; names with spaces must be written in full. Detection (`MeshCoreConnector.textMentionsName`) runs on the original text, before any automatic translation.
|
||||
|
||||
## Rate Limiting
|
||||
|
||||
|
||||
Reference in new issue
Block a user