|
@@ -16,7 +16,12 @@ import ParticipantsCount from './ParticipantsCount';
|
16
|
16
|
type Props = {
|
17
|
17
|
|
18
|
18
|
/**
|
19
|
|
- * Whether then participant count should be shown or not.
|
|
19
|
+ * Whether the conference timer should be shown or not.
|
|
20
|
+ */
|
|
21
|
+ _hideConferenceTimer: Boolean,
|
|
22
|
+
|
|
23
|
+ /**
|
|
24
|
+ * Whether the participant count should be shown or not.
|
20
|
25
|
*/
|
21
|
26
|
_showParticipantCount: boolean,
|
22
|
27
|
|
|
@@ -46,13 +51,13 @@ class Subject extends Component<Props> {
|
46
|
51
|
* @returns {ReactElement}
|
47
|
52
|
*/
|
48
|
53
|
render() {
|
49
|
|
- const { _showParticipantCount, _subject, _visible } = this.props;
|
|
54
|
+ const { _hideConferenceTimer, _showParticipantCount, _subject, _visible } = this.props;
|
50
|
55
|
|
51
|
56
|
return (
|
52
|
57
|
<div className = { `subject ${_visible ? 'visible' : ''}` }>
|
53
|
58
|
<span className = 'subject-text'>{ _subject }</span>
|
54
|
59
|
{ _showParticipantCount && <ParticipantsCount /> }
|
55
|
|
- <ConferenceTimer />
|
|
60
|
+ { !_hideConferenceTimer && <ConferenceTimer /> }
|
56
|
61
|
</div>
|
57
|
62
|
);
|
58
|
63
|
}
|
|
@@ -65,6 +70,8 @@ class Subject extends Component<Props> {
|
65
|
70
|
* @param {Object} state - The Redux state.
|
66
|
71
|
* @private
|
67
|
72
|
* @returns {{
|
|
73
|
+ * _hideConferenceTimer: boolean,
|
|
74
|
+ * _showParticipantCount: boolean,
|
68
|
75
|
* _subject: string,
|
69
|
76
|
* _visible: boolean
|
70
|
77
|
* }}
|
|
@@ -73,6 +80,7 @@ function _mapStateToProps(state) {
|
73
|
80
|
const participantCount = getParticipantCount(state);
|
74
|
81
|
|
75
|
82
|
return {
|
|
83
|
+ _hideConferenceTimer: Boolean(state['features/base/config'].hideConferenceTimer),
|
76
|
84
|
_showParticipantCount: participantCount > 2,
|
77
|
85
|
_subject: getConferenceName(state),
|
78
|
86
|
_visible: isToolboxVisible(state) && participantCount > 1
|