fix: don't auto-play bot audio message if another audio message is playing (#5315)
This commit is contained in:
parent
2f5d67e202
commit
7458f8f559
1 changed files with 2 additions and 0 deletions
|
|
@ -496,6 +496,8 @@ class ChatController extends State<ChatPageWithRoom>
|
|||
if (botAudioEvent == null) return;
|
||||
|
||||
final matrix = Matrix.of(context);
|
||||
if (matrix.voiceMessageEventId.value != null) return;
|
||||
|
||||
matrix.voiceMessageEventId.value = botAudioEvent.eventId;
|
||||
matrix.audioPlayer?.dispose();
|
||||
matrix.audioPlayer = AudioPlayer();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue