chore: stop audio player on showToolbar (#1979)
This commit is contained in:
parent
a8b0c50a53
commit
6197849497
1 changed files with 2 additions and 3 deletions
|
|
@ -360,9 +360,8 @@ class AudioPlayerState extends State<AudioPlayerWidget> {
|
|||
: _downloadAction();
|
||||
}
|
||||
|
||||
_onShowToolbar = widget.chatController.showToolbarStream.stream
|
||||
.where((eventID) => eventID == widget.event?.eventId)
|
||||
.listen((eventID) {
|
||||
_onShowToolbar =
|
||||
widget.chatController.showToolbarStream.stream.listen((eventID) {
|
||||
audioPlayer?.pause();
|
||||
audioPlayer?.seek(Duration.zero);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue