Files
Meshtastic-Android/core/data/src
James Rich d66c393732 fix: Return unique messageId from SendMessageUseCase
Previously, AiFunctionProviderImpl returned a hardcoded messageId of 0
for all successful sends, preventing unique message identification. The
underlying SendMessageUseCase generates a packetId but had no return
value to expose it.

Changes:
- Modified SendMessageUseCase interface to return Int (the packetId)
- Updated SendMessageUseCaseImpl to return the generated packetId
- Updated AiFunctionProviderImpl to capture and use the returned messageId

This enables the AI system to track individual messages and correlate
responses to specific send requests.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-05-21 14:23:59 -05:00
..