Do not handle the actual error message yet

This commit is contained in:
yanas 2016-06-02 17:12:40 -05:00
parent 7e4b13fb44
commit 07c2e91ae2
3 changed files with 6 additions and 7 deletions

View File

@ -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) {

View File

@ -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 () {

View File

@ -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');