pause audio when entering a thread

This commit is contained in:
Reinaldo Neto 2023-08-24 18:13:31 -03:00
parent e84a5b3b4b
commit e735cef75e
1 changed files with 3 additions and 0 deletions

View File

@ -1182,6 +1182,9 @@ class RoomView extends React.Component<IRoomViewProps, IRoomViewState> {
return;
}
// TODO: Refactor when audio becomes global
await audioPlayer.pauseCurrentAudio();
if (item.tmid) {
let name = '';
let jumpToMessageId = '';