|
@@ -18,10 +18,11 @@ import UIEvents from "../../../service/UI/UIEvents";
|
18
|
18
|
import UIUtil from '../util/UIUtil';
|
19
|
19
|
|
20
|
20
|
/**
|
21
|
|
- * Recording.
|
|
21
|
+ * Indicates if the recording button should be enabled.
|
|
22
|
+ *
|
|
23
|
+ * @returns {boolean} {true} if the
|
|
24
|
+ * @private
|
22
|
25
|
*/
|
23
|
|
-let recordingToaster = null;
|
24
|
|
-
|
25
|
26
|
function _isRecordingButtonEnabled() {
|
26
|
27
|
return interfaceConfig.TOOLBAR_BUTTONS.indexOf("recording") !== -1
|
27
|
28
|
&& config.enableRecording;
|
|
@@ -270,6 +271,10 @@ var Recording = {
|
270
|
271
|
},
|
271
|
272
|
|
272
|
273
|
updateRecordingState(recordingState) {
|
|
274
|
+ // I'm the recorder, so I don't want to see any UI related to states.
|
|
275
|
+ if (config.iAmRecorder)
|
|
276
|
+ return;
|
|
277
|
+
|
273
|
278
|
// If there's no state change, we ignore the update.
|
274
|
279
|
if (this.currentState === recordingState)
|
275
|
280
|
return;
|