mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-06-08 05:55:19 -04:00
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>