From b2b8be8b320a9a0c393777d67d59ea0cb3295231 Mon Sep 17 00:00:00 2001 From: Miroslav Pejic Date: Sun, 22 Oct 2023 11:59:15 +0200 Subject: [PATCH] [mirotalksfu] - fix typo --- public/js/RoomClient.js | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/public/js/RoomClient.js b/public/js/RoomClient.js index 169f7f99..b72d80ff 100644 --- a/public/js/RoomClient.js +++ b/public/js/RoomClient.js @@ -3450,9 +3450,9 @@ class RoomClient { // RECORDING // #################################################### - handleRecordingError(error) { + handleRecordingError(error, popupLog = true) { console.error('Recording error', error); - this.userLog('error', error, 'top-end', 6000); + if (popupLog) this.userLog('error', error, 'top-end', 6000); } getSupportedMimeTypes() { @@ -3502,7 +3502,7 @@ class RoomClient { recordingOptions(options, audioMixerTracks) { Swal.fire({ background: swalBackground, - position: 'center', + position: 'top', imageUrl: image.recording, title: 'Recording options', showDenyButton: true, @@ -3551,7 +3551,7 @@ class RoomClient { this.initRecording(); } catch (err) { - this.handleRecordingError('Unable to record the camera + audio: ' + err); + this.handleRecordingError('Unable to record the camera + audio: ' + err, false); } } @@ -3761,15 +3761,8 @@ class RoomClient { to_peer_name: 'all', }; this.showMessage(recAction); - if (!this.showChatOnMessage) { - this.msgHTML( - null, - image.recording, - null, - `${icons.user} ${data.peer_name}:

${data.action}

`, - 'top', - ); + this.msgHTML(null, image.recording, null, `${icons.user} ${data.peer_name}:

${data.action}

`); } }