From 07c2e91ae27fcbac38ab0d009c9613df20c9cc93 Mon Sep 17 00:00:00 2001 From: yanas Date: Thu, 2 Jun 2016 17:12:40 -0500 Subject: [PATCH] Do not handle the actual error message yet --- conference.js | 2 +- modules/UI/UI.js | 4 ++-- modules/UI/recording/Recording.js | 7 +++---- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/conference.js b/conference.js index 2e40c431c..951ec2e79 100644 --- a/conference.js +++ b/conference.js @@ -1151,7 +1151,7 @@ export default { room.on(ConferenceEvents.RECORDER_STATE_CHANGED, (status, error) => { console.log("Received recorder status change: ", status, error); - APP.UI.updateRecordingState(status, error); + APP.UI.updateRecordingState(status); }); room.on(ConferenceEvents.USER_STATUS_CHANGED, function (id, status) { diff --git a/modules/UI/UI.js b/modules/UI/UI.js index c62afb2c6..612f407c8 100644 --- a/modules/UI/UI.js +++ b/modules/UI/UI.js @@ -1006,8 +1006,8 @@ UI.requestFeedback = function () { }); }; -UI.updateRecordingState = function (state, error) { - Recording.updateRecordingState(state, error); +UI.updateRecordingState = function (state) { + Recording.updateRecordingState(state); }; UI.notifyTokenAuthFailed = function () { diff --git a/modules/UI/recording/Recording.js b/modules/UI/recording/Recording.js index 308eedd6c..8929d1be7 100644 --- a/modules/UI/recording/Recording.js +++ b/modules/UI/recording/Recording.js @@ -348,7 +348,7 @@ var Recording = { * Updates the recording state UI. * @param recordingState gives us the current recording state */ - updateRecordingState(recordingState, error) { + updateRecordingState(recordingState) { // I'm the recorder, so I don't want to see any UI related to states. if (config.iAmRecorder) return; @@ -357,14 +357,14 @@ var Recording = { if (!recordingState || this.currentState === recordingState) return; - this.updateRecordingUI(recordingState, error); + this.updateRecordingUI(recordingState); }, /** * Sets the state of the recording button. * @param recordingState gives us the current recording state */ - updateRecordingUI (recordingState, error) { + updateRecordingUI (recordingState) { let buttonSelector = $('#toolbar_button_record'); let oldState = this.currentState; @@ -417,7 +417,6 @@ var Recording = { buttonSelector.addClass(this.baseClass); this._updateStatusLabel(this.recordingErrorKey, true); - console.log("Recording failed for the following reason: ", error); } let labelSelector = $('#recordingLabel');