|
@@ -25,6 +25,11 @@ type Props = {
|
25
|
25
|
*/
|
26
|
26
|
_showParticipantCount: boolean,
|
27
|
27
|
|
|
28
|
+ /**
|
|
29
|
+ * Whether the conference subject should be shown or not.
|
|
30
|
+ */
|
|
31
|
+ _showSubject: boolean,
|
|
32
|
+
|
28
|
33
|
/**
|
29
|
34
|
* The subject or the of the conference.
|
30
|
35
|
* Falls back to conference name.
|
|
@@ -51,11 +56,11 @@ class Subject extends Component<Props> {
|
51
|
56
|
* @returns {ReactElement}
|
52
|
57
|
*/
|
53
|
58
|
render() {
|
54
|
|
- const { _hideConferenceTimer, _showParticipantCount, _subject, _visible } = this.props;
|
|
59
|
+ const { _hideConferenceTimer, _showParticipantCount, _showSubject, _subject, _visible } = this.props;
|
55
|
60
|
|
56
|
61
|
return (
|
57
|
62
|
<div className = { `subject ${_visible ? 'visible' : ''}` }>
|
58
|
|
- <span className = 'subject-text'>{ _subject }</span>
|
|
63
|
+ { _showSubject && <span className = 'subject-text'>{ _subject }</span>}
|
59
|
64
|
{ _showParticipantCount && <ParticipantsCount /> }
|
60
|
65
|
{ !_hideConferenceTimer && <ConferenceTimer /> }
|
61
|
66
|
</div>
|
|
@@ -72,16 +77,19 @@ class Subject extends Component<Props> {
|
72
|
77
|
* @returns {{
|
73
|
78
|
* _hideConferenceTimer: boolean,
|
74
|
79
|
* _showParticipantCount: boolean,
|
|
80
|
+ * _showSubject: boolean,
|
75
|
81
|
* _subject: string,
|
76
|
82
|
* _visible: boolean
|
77
|
83
|
* }}
|
78
|
84
|
*/
|
79
|
85
|
function _mapStateToProps(state) {
|
80
|
86
|
const participantCount = getParticipantCount(state);
|
|
87
|
+ const { hideConferenceTimer, hideConferenceSubject, hideParticipantsStats } = state['features/base/config'];
|
81
|
88
|
|
82
|
89
|
return {
|
83
|
|
- _hideConferenceTimer: Boolean(state['features/base/config'].hideConferenceTimer),
|
84
|
|
- _showParticipantCount: participantCount > 2,
|
|
90
|
+ _hideConferenceTimer: Boolean(hideConferenceTimer),
|
|
91
|
+ _showParticipantCount: participantCount > 2 && !hideParticipantsStats,
|
|
92
|
+ _showSubject: !hideConferenceSubject,
|
85
|
93
|
_subject: getConferenceName(state),
|
86
|
94
|
_visible: isToolboxVisible(state) && participantCount > 1
|
87
|
95
|
};
|