Browse Source

Hides call info and invite button in iAmRecorder mode. (#2154)

master
Дамян Минков 7 years ago
parent
commit
5dbabbe44a

+ 11
- 1
react/features/filmstrip/components/Filmstrip.web.js View File

32
      * @static
32
      * @static
33
      */
33
      */
34
     static propTypes = {
34
     static propTypes = {
35
+        /**
36
+         * Whether invite button rendering should be skipped,
37
+         * by default it is. false
38
+         */
39
+        _hideInviteButton: PropTypes.bool,
40
+
35
         /**
41
         /**
36
          * Whether or not remote videos are currently being hovered over.
42
          * Whether or not remote videos are currently being hovered over.
37
          */
43
          */
110
                         id = 'filmstripLocalVideo'
116
                         id = 'filmstripLocalVideo'
111
                         onMouseOut = { this._onMouseOut }
117
                         onMouseOut = { this._onMouseOut }
112
                         onMouseOver = { this._onMouseOver }>
118
                         onMouseOver = { this._onMouseOver }>
113
-                        { this.props.filmstripOnly ? null : <InviteButton /> }
119
+                        { this.props.filmstripOnly
120
+                            || this.props._hideInviteButton
121
+                            ? null : <InviteButton /> }
114
                         <div id = 'filmstripLocalVideoThumbnail' />
122
                         <div id = 'filmstripLocalVideoThumbnail' />
115
                     </div>
123
                     </div>
116
                     <div
124
                     <div
185
  * @private
193
  * @private
186
  * @returns {{
194
  * @returns {{
187
  *     _hovered: boolean,
195
  *     _hovered: boolean,
196
+ *     _hideInviteButton: boolean,
188
  *     _remoteVideosVisible: boolean
197
  *     _remoteVideosVisible: boolean
189
  * }}
198
  * }}
190
  */
199
  */
191
 function _mapStateToProps(state) {
200
 function _mapStateToProps(state) {
192
     return {
201
     return {
193
         _hovered: state['features/filmstrip'].hovered,
202
         _hovered: state['features/filmstrip'].hovered,
203
+        _hideInviteButton: state['features/base/config'].iAmRecorder,
194
         _remoteVideosVisible: shouldRemoteVideosBeVisible(state)
204
         _remoteVideosVisible: shouldRemoteVideosBeVisible(state)
195
     };
205
     };
196
 }
206
 }

+ 4
- 0
react/features/invite/middleware.js View File

18
 
18
 
19
     switch (action.type) {
19
     switch (action.type) {
20
     case CONFERENCE_JOINED:
20
     case CONFERENCE_JOINED:
21
+        // we do not want to show call info in iAmRecorder mode
22
+        if (store.getState()['features/base/config'].iAmRecorder) {
23
+            return result;
24
+        }
21
         store.dispatch(setInfoDialogVisibility(true, true));
25
         store.dispatch(setInfoDialogVisibility(true, true));
22
         break;
26
         break;
23
 
27
 

Loading…
Cancel
Save