android: send recorded audio as voice and fix playback replay/duration
Some checks failed
Android CI / android (push) Failing after 4m5s
Android Release / release (push) Failing after 4m1s
CI / test (push) Failing after 2m24s

This commit is contained in:
Codex
2026-03-09 16:52:17 +03:00
parent fd31e39fce
commit c12ab05946
3 changed files with 43 additions and 5 deletions

View File

@@ -455,3 +455,8 @@
- Added tablet-aware max-width layout constraints across major screens (login, verify/reset auth, chats list, chat, profile, settings).
- Kept phone layout unchanged while centering content and limiting line width on larger displays.
- Fixed voice hold-to-send gesture reliability by removing pointer-input restarts during active recording, so release consistently triggers send path.
### Step 73 - Voice message send/playback bugfixes
- Fixed voice media type mapping in message repository: recorded files with `voice_*.m4a` are now sent as message type `voice` (not generic `audio`).
- Fixed audio replay behavior: when playback reaches the end, next play restarts from `0:00`.
- Improved duration display in audio/voice player by adding metadata fallback when `MediaPlayer` duration is not immediately available.