|
@@ -21,7 +21,7 @@ interface IProps extends WithTranslation {
|
21
|
21
|
_iAmRecorder: boolean;
|
22
|
22
|
|
23
|
23
|
/**
|
24
|
|
- * The status of the highermost priority session.
|
|
24
|
+ * The status of the higher priority session.
|
25
|
25
|
*/
|
26
|
26
|
_status?: string;
|
27
|
27
|
|
|
@@ -56,8 +56,7 @@ const STALE_TIMEOUT = 10 * 1000;
|
56
|
56
|
/**
|
57
|
57
|
* Abstract class for the {@code RecordingLabel} component.
|
58
|
58
|
*/
|
59
|
|
-export default class AbstractRecordingLabel
|
60
|
|
- extends Component<IProps, IState> {
|
|
59
|
+export default class AbstractRecordingLabel extends Component<IProps, IState> {
|
61
|
60
|
_mounted: boolean;
|
62
|
61
|
|
63
|
62
|
/**
|
|
@@ -124,24 +123,6 @@ export default class AbstractRecordingLabel
|
124
|
123
|
? this._renderLabel() : null;
|
125
|
124
|
}
|
126
|
125
|
|
127
|
|
- /**
|
128
|
|
- * Returns the label key that this indicator should render.
|
129
|
|
- *
|
130
|
|
- * @protected
|
131
|
|
- * @returns {?string}
|
132
|
|
- */
|
133
|
|
- _getLabelKey() {
|
134
|
|
- switch (this.props.mode) {
|
135
|
|
- case JitsiRecordingConstants.mode.STREAM:
|
136
|
|
- return 'recording.live';
|
137
|
|
- case JitsiRecordingConstants.mode.FILE:
|
138
|
|
- return 'recording.rec';
|
139
|
|
- default:
|
140
|
|
- // Invalid mode is passed to the component.
|
141
|
|
- return undefined;
|
142
|
|
- }
|
143
|
|
- }
|
144
|
|
-
|
145
|
126
|
/**
|
146
|
127
|
* Renders the platform specific label component.
|
147
|
128
|
*
|
|
@@ -169,8 +150,7 @@ export default class AbstractRecordingLabel
|
169
|
150
|
}
|
170
|
151
|
|
171
|
152
|
// Only if it's still OFF.
|
172
|
|
- if (this.props._status
|
173
|
|
- === JitsiRecordingConstants.status.OFF) {
|
|
153
|
+ if (this.props._status === JitsiRecordingConstants.status.OFF) {
|
174
|
154
|
this.setState({
|
175
|
155
|
staleLabel: true
|
176
|
156
|
});
|