fix: suppress voice autoplay while recording
| .. | .. |
|---|
| 343 | 343 | ref.read(isTypingProvider.notifier).state = false; |
|---|
| 344 | 344 | _scrollToBottom(); |
|---|
| 345 | 345 | |
|---|
| 346 | | - if (audioData != null && !AudioService.isBackgrounded && !_isCatchingUp) { |
|---|
| 347 | | - // Queue incoming voice chunks — don't cancel what's already playing |
|---|
| 346 | + if (audioData != null && !AudioService.isBackgrounded && !_isCatchingUp && !_isRecording) { |
|---|
| 347 | + // Queue incoming voice chunks — don't play while recording |
|---|
| 348 | 348 | AudioService.queueBase64(audioData); |
|---|
| 349 | 349 | } |
|---|
| 350 | 350 | } |
|---|