[RN] Honor filmstrip visibility state

This commit is contained in:
Saúl Ibarra Corretgé 2018-02-01 16:47:54 +01:00 committed by Lyubo Marinov
parent aa314c10ac
commit 9e53d40b9c
1 changed files with 2 additions and 1 deletions

View File

@ -131,6 +131,7 @@ class Filmstrip extends Component<*> {
*/ */
function _mapStateToProps(state) { function _mapStateToProps(state) {
const participants = state['features/base/participants']; const participants = state['features/base/participants'];
const { visible } = state['features/filmstrip'];
return { return {
/** /**
@ -149,7 +150,7 @@ function _mapStateToProps(state) {
* @private * @private
* @type {boolean} * @type {boolean}
*/ */
_visible: participants.length > 1 _visible: visible && participants.length > 1
}; };
} }