Fix setMediaPlaybackDisabled when reduxActions not ready
This commit is contained in:
parent
fbefbcea73
commit
c5b8f49f25
1 changed files with 2 additions and 2 deletions
|
@ -694,9 +694,9 @@ export function createIPCEvents(
|
||||||
getMediaCameraPermissions: window.IPC.getMediaCameraPermissions,
|
getMediaCameraPermissions: window.IPC.getMediaCameraPermissions,
|
||||||
|
|
||||||
setMediaPlaybackDisabled: (playbackDisabled: boolean) => {
|
setMediaPlaybackDisabled: (playbackDisabled: boolean) => {
|
||||||
window.reduxActions.lightbox.setPlaybackDisabled(playbackDisabled);
|
window.reduxActions?.lightbox.setPlaybackDisabled(playbackDisabled);
|
||||||
if (playbackDisabled) {
|
if (playbackDisabled) {
|
||||||
window.reduxActions.audioPlayer.pauseVoiceNotePlayer();
|
window.reduxActions?.audioPlayer.pauseVoiceNotePlayer();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue