|
@@ -9,6 +9,7 @@ import { Platform } from '../../../base/react';
|
9
|
9
|
import { connect } from '../../../base/redux';
|
10
|
10
|
import { ASPECT_RATIO_NARROW } from '../../../base/responsive-ui/constants';
|
11
|
11
|
import { getHideSelfView } from '../../../base/settings/functions.any';
|
|
12
|
+import { areThereNotifications } from '../../../notifications/functions';
|
12
|
13
|
import { isToolboxVisible } from '../../../toolbox/functions';
|
13
|
14
|
import { setVisibleRemoteParticipants } from '../../actions';
|
14
|
15
|
import {
|
|
@@ -16,12 +17,13 @@ import {
|
16
|
17
|
isFilmstripVisible,
|
17
|
18
|
shouldDisplayLocalThumbnailSeparately,
|
18
|
19
|
shouldRemoteVideosBeVisible
|
19
|
|
-} from '../../functions';
|
|
20
|
+} from '../../functions.native';
|
20
|
21
|
|
21
|
22
|
import LocalThumbnail from './LocalThumbnail';
|
22
|
23
|
import Thumbnail from './Thumbnail';
|
23
|
24
|
import styles from './styles';
|
24
|
25
|
|
|
26
|
+
|
25
|
27
|
// Immutable reference to avoid re-renders.
|
26
|
28
|
const NO_REMOTE_VIDEOS = [];
|
27
|
29
|
|
|
@@ -51,6 +53,8 @@ type Props = {
|
51
|
53
|
|
52
|
54
|
_localParticipantId: string,
|
53
|
55
|
|
|
56
|
+ _notificationsAvailable: boolean,
|
|
57
|
+
|
54
|
58
|
/**
|
55
|
59
|
* The participants in the conference.
|
56
|
60
|
*/
|
|
@@ -248,6 +252,7 @@ class Filmstrip extends PureComponent<Props> {
|
248
|
252
|
_disableSelfView,
|
249
|
253
|
_toolboxVisible,
|
250
|
254
|
_localParticipantId,
|
|
255
|
+ _notificationsAvailable,
|
251
|
256
|
_participants,
|
252
|
257
|
_visible
|
253
|
258
|
} = this.props;
|
|
@@ -256,7 +261,7 @@ class Filmstrip extends PureComponent<Props> {
|
256
|
261
|
return null;
|
257
|
262
|
}
|
258
|
263
|
|
259
|
|
- const bottomEdge = Platform.OS === 'ios' && !_toolboxVisible;
|
|
264
|
+ const bottomEdge = Platform.OS === 'ios' && !_toolboxVisible && !_notificationsAvailable;
|
260
|
265
|
const isNarrowAspectRatio = _aspectRatio === ASPECT_RATIO_NARROW;
|
261
|
266
|
const filmstripStyle = isNarrowAspectRatio ? styles.filmstripNarrow : styles.filmstripWide;
|
262
|
267
|
const { height, width } = this._getDimensions();
|
|
@@ -330,6 +335,7 @@ function _mapStateToProps(state) {
|
330
|
335
|
_clientWidth: responsiveUI.clientWidth,
|
331
|
336
|
_disableSelfView: disableSelfView,
|
332
|
337
|
_localParticipantId: getLocalParticipant(state)?.id,
|
|
338
|
+ _notificationsAvailable: areThereNotifications(state),
|
333
|
339
|
_participants: showRemoteVideos ? remoteParticipants : NO_REMOTE_VIDEOS,
|
334
|
340
|
_toolboxVisible: isToolboxVisible(state),
|
335
|
341
|
_visible: enabled && isFilmstripVisible(state)
|