fix where call the pauseCurrentAudio
This commit is contained in:
parent
9094b73456
commit
182af31fb2
|
@ -403,8 +403,6 @@ class RoomView extends React.Component<IRoomViewProps, IRoomViewState> {
|
||||||
const { editing, room } = this.state;
|
const { editing, room } = this.state;
|
||||||
const db = database.active;
|
const db = database.active;
|
||||||
this.mounted = false;
|
this.mounted = false;
|
||||||
// TODO: Refactor when audio becomes global
|
|
||||||
await audioPlayer.pauseCurrentAudio();
|
|
||||||
if (!editing && this.messagebox && this.messagebox.current) {
|
if (!editing && this.messagebox && this.messagebox.current) {
|
||||||
const { text } = this.messagebox.current;
|
const { text } = this.messagebox.current;
|
||||||
let obj: TSubscriptionModel | TThreadModel | null = null;
|
let obj: TSubscriptionModel | TThreadModel | null = null;
|
||||||
|
@ -450,6 +448,8 @@ class RoomView extends React.Component<IRoomViewProps, IRoomViewState> {
|
||||||
}
|
}
|
||||||
EventEmitter.removeListener('connected', this.handleConnected);
|
EventEmitter.removeListener('connected', this.handleConnected);
|
||||||
EventEmitter.removeListener('ROOM_REMOVED', this.handleRoomRemoved);
|
EventEmitter.removeListener('ROOM_REMOVED', this.handleRoomRemoved);
|
||||||
|
// TODO: Refactor when audio becomes global
|
||||||
|
await audioPlayer.pauseCurrentAudio();
|
||||||
}
|
}
|
||||||
|
|
||||||
canForwardGuest = async () => {
|
canForwardGuest = async () => {
|
||||||
|
|
Loading…
Reference in New Issue