mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
feat(auto): append outgoing reply to MessagingStyle for brief confirmation
Before cancelling a conversation notification in response to an inline reply, post one final update that appends the outgoing text to the MessagingStyle history, attributed to the local user. This gives assistants such as Android Auto a tick to observe the sent message in the notification's message history and surface a 'reply sent' style confirmation before markConversationRead cancels the notification. Extract the 'me' Person construction into buildMePerson() and share it between showGroupSummary and createConversationNotification. The conversation builder now optionally takes an extraOutgoingMessage which is appended to the MessagingStyle (actions and when-timestamp continue to be anchored on the last incoming message). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
parent
6d70d154e6
commit
eb3a27a3d3
6 changed files with 65 additions and 16 deletions
|
|
@ -158,6 +158,10 @@ class DesktopMeshServiceNotifications(private val notificationManager: Notificat
|
|||
notificationManager.cancel(contactKey.hashCode())
|
||||
}
|
||||
|
||||
override suspend fun appendOutgoingMessage(contactKey: String, text: String) {
|
||||
// No-op: desktop tray notifications don't carry MessagingStyle history to augment.
|
||||
}
|
||||
|
||||
override fun cancelLowBatteryNotification(node: Node) {
|
||||
notificationManager.cancel(node.num)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue