[RN] Fix a react warning on remote video menu

This commit is contained in:
Bettenbuk Zoltan 2018-12-21 11:17:08 +01:00 committed by Saúl Ibarra Corretgé
parent 2ea5f3c1aa
commit 82f6931ee8
1 changed files with 2 additions and 1 deletions

View File

@ -131,7 +131,8 @@ class Thumbnail extends Component<Props> {
<Container <Container
onClick = { disablePin ? undefined : this._onClick } onClick = { disablePin ? undefined : this._onClick }
onLongPress = { onLongPress = {
showRemoteVideoMenu && this._onShowRemoteVideoMenu } showRemoteVideoMenu
? this._onShowRemoteVideoMenu : undefined }
style = { [ style = { [
styles.thumbnail, styles.thumbnail,
participant.pinned && !disablePin participant.pinned && !disablePin