[RN] Fix undefined.avatarID in ParticipantView

pull/1426/head^2 jitsi-meet_1861
Lyubo Marinov 8 years ago
parent d74e43ddcc
commit e6f906b9ca
  1. 10
      react/features/base/participants/components/ParticipantView.native.js

@ -163,13 +163,13 @@ function _toBoolean(value, undefinedValue) {
*/
function _mapStateToProps(state, ownProps) {
const { participantId } = ownProps;
const participant
= getParticipantById(
state['features/base/participants'],
participantId);
return {
_avatar:
getAvatarURL(
getParticipantById(
state['features/base/participants'],
participantId)),
_avatar: participant && getAvatarURL(participant),
_videoTrack:
getTrackByMediaTypeAndParticipant(
state['features/base/tracks'],

Loading…
Cancel
Save