Ver código fonte

[RN] Fix a react warning on remote video menu

j8
Bettenbuk Zoltan 6 anos atrás
pai
commit
82f6931ee8

+ 2
- 1
react/features/filmstrip/components/native/Thumbnail.js Ver arquivo

131
             <Container
131
             <Container
132
                 onClick = { disablePin ? undefined : this._onClick }
132
                 onClick = { disablePin ? undefined : this._onClick }
133
                 onLongPress = {
133
                 onLongPress = {
134
-                    showRemoteVideoMenu && this._onShowRemoteVideoMenu }
134
+                    showRemoteVideoMenu
135
+                        ? this._onShowRemoteVideoMenu : undefined }
135
                 style = { [
136
                 style = { [
136
                     styles.thumbnail,
137
                     styles.thumbnail,
137
                     participant.pinned && !disablePin
138
                     participant.pinned && !disablePin

Carregando…
Cancelar
Salvar