|
@@ -25,17 +25,19 @@ import { LargeVideo } from '../../../large-video';
|
25
|
25
|
import { AddPeopleDialog, CalleeInfoContainer } from '../../../invite';
|
26
|
26
|
import { Captions } from '../../../subtitles';
|
27
|
27
|
import { setToolboxVisible, Toolbox } from '../../../toolbox';
|
28
|
|
-import { shouldDisplayTileView } from '../../../video-layout';
|
29
|
28
|
|
|
29
|
+import { abstractMapStateToProps } from '../AbstractConference';
|
30
|
30
|
import DisplayNameLabel from './DisplayNameLabel';
|
31
|
31
|
import Labels from './Labels';
|
32
|
32
|
import NavigationBar from './NavigationBar';
|
33
|
33
|
import styles from './styles';
|
34
|
34
|
|
|
35
|
+import type { AbstractProps } from '../AbstractConference';
|
|
36
|
+
|
35
|
37
|
/**
|
36
|
38
|
* The type of the React {@code Component} props of {@link Conference}.
|
37
|
39
|
*/
|
38
|
|
-type Props = {
|
|
40
|
+type Props = AbstractProps & {
|
39
|
41
|
|
40
|
42
|
/**
|
41
|
43
|
* The indicator which determines that we are still connecting to the
|
|
@@ -103,13 +105,6 @@ type Props = {
|
103
|
105
|
*/
|
104
|
106
|
_reducedUI: boolean,
|
105
|
107
|
|
106
|
|
- /**
|
107
|
|
- * The current conference room name.
|
108
|
|
- *
|
109
|
|
- * @private
|
110
|
|
- */
|
111
|
|
- _room: string,
|
112
|
|
-
|
113
|
108
|
/**
|
114
|
109
|
* The handler which dispatches the (redux) action {@link setToolboxVisible}
|
115
|
110
|
* to show/hide the {@link Toolbox}.
|
|
@@ -121,13 +116,6 @@ type Props = {
|
121
|
116
|
*/
|
122
|
117
|
_setToolboxVisible: Function,
|
123
|
118
|
|
124
|
|
- /**
|
125
|
|
- * Whether or not the layout should change to support tile view mode.
|
126
|
|
- *
|
127
|
|
- * @private
|
128
|
|
- */
|
129
|
|
- _shouldDisplayTileView: boolean,
|
130
|
|
-
|
131
|
119
|
/**
|
132
|
120
|
* The indicator which determines whether the Toolbox is visible.
|
133
|
121
|
*
|
|
@@ -424,16 +412,7 @@ function _mapDispatchToProps(dispatch) {
|
424
|
412
|
*
|
425
|
413
|
* @param {Object} state - The redux state.
|
426
|
414
|
* @private
|
427
|
|
- * @returns {{
|
428
|
|
- * _connecting: boolean,
|
429
|
|
- * _filmstripVisible: boolean,
|
430
|
|
- * _locationURL: URL,
|
431
|
|
- * _participantCount: number,
|
432
|
|
- * _reducedUI: boolean,
|
433
|
|
- * _room: string,
|
434
|
|
- * _toolboxVisible: boolean,
|
435
|
|
- * _toolboxAlwaysVisible: boolean
|
436
|
|
- * }}
|
|
415
|
+ * @returns {Props}
|
437
|
416
|
*/
|
438
|
417
|
function _mapStateToProps(state) {
|
439
|
418
|
const { connecting, connection, locationURL }
|
|
@@ -441,8 +420,7 @@ function _mapStateToProps(state) {
|
441
|
420
|
const {
|
442
|
421
|
conference,
|
443
|
422
|
joining,
|
444
|
|
- leaving,
|
445
|
|
- room
|
|
423
|
+ leaving
|
446
|
424
|
} = state['features/base/conference'];
|
447
|
425
|
const { reducedUI } = state['features/base/responsive-ui'];
|
448
|
426
|
const { alwaysVisible, visible } = state['features/toolbox'];
|
|
@@ -460,6 +438,8 @@ function _mapStateToProps(state) {
|
460
|
438
|
= connecting || (connection && (joining || (!conference && !leaving)));
|
461
|
439
|
|
462
|
440
|
return {
|
|
441
|
+ ...abstractMapStateToProps(state),
|
|
442
|
+
|
463
|
443
|
/**
|
464
|
444
|
* The indicator which determines that we are still connecting to the
|
465
|
445
|
* conference which includes establishing the XMPP connection and then
|
|
@@ -501,22 +481,6 @@ function _mapStateToProps(state) {
|
501
|
481
|
*/
|
502
|
482
|
_reducedUI: reducedUI,
|
503
|
483
|
|
504
|
|
- /**
|
505
|
|
- * The current conference room name.
|
506
|
|
- *
|
507
|
|
- * @private
|
508
|
|
- * @type {string}
|
509
|
|
- */
|
510
|
|
- _room: room,
|
511
|
|
-
|
512
|
|
- /**
|
513
|
|
- * Whether or not the layout should change to support tile view mode.
|
514
|
|
- *
|
515
|
|
- * @private
|
516
|
|
- * @type {boolean}
|
517
|
|
- */
|
518
|
|
- _shouldDisplayTileView: shouldDisplayTileView(state),
|
519
|
|
-
|
520
|
484
|
/**
|
521
|
485
|
* The indicator which determines whether the Toolbox is visible.
|
522
|
486
|
*
|