|
@@ -70,6 +70,16 @@ class Conference extends Component {
|
70
|
70
|
this._onClick = this._onClick.bind(this);
|
71
|
71
|
}
|
72
|
72
|
|
|
73
|
+ /**
|
|
74
|
+ * Inits the toolbar timeout after the component is initially rendered.
|
|
75
|
+ *
|
|
76
|
+ * @inheritDoc
|
|
77
|
+ * returns {void}
|
|
78
|
+ */
|
|
79
|
+ componentDidMount() {
|
|
80
|
+ this._setToolbarTimeout(this.state.toolbarVisible);
|
|
81
|
+ }
|
|
82
|
+
|
73
|
83
|
/**
|
74
|
84
|
* Inits new connection and conference when conference screen is entered.
|
75
|
85
|
*
|
|
@@ -102,8 +112,6 @@ class Conference extends Component {
|
102
|
112
|
render() {
|
103
|
113
|
const toolbarVisible = this.state.toolbarVisible;
|
104
|
114
|
|
105
|
|
- this._setToolbarTimeout(toolbarVisible);
|
106
|
|
-
|
107
|
115
|
return (
|
108
|
116
|
<Container
|
109
|
117
|
onClick = { this._onClick }
|
|
@@ -203,9 +211,10 @@ class Conference extends Component {
|
203
|
211
|
/**
|
204
|
212
|
* Triggers the default toolbar timeout.
|
205
|
213
|
*
|
206
|
|
- * @param {boolean} toolbarVisible - indicates if the toolbar is currently
|
|
214
|
+ * @param {boolean} toolbarVisible - Indicates if the toolbar is currently
|
207
|
215
|
* visible
|
208
|
216
|
* @private
|
|
217
|
+ * @returns {void}
|
209
|
218
|
*/
|
210
|
219
|
_setToolbarTimeout(toolbarVisible) {
|
211
|
220
|
this._clearToolbarTimeout();
|