소스 검색

Fix(mobile/conference): Move the initial call to the componentDidMount method

j8
yanas 8 년 전
부모
커밋
616ab0f635
1개의 변경된 파일12개의 추가작업 그리고 3개의 파일을 삭제
  1. 12
    3
      react/features/conference/components/Conference.native.js

+ 12
- 3
react/features/conference/components/Conference.native.js 파일 보기

@@ -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();

Loading…
취소
저장