[RN] Fix undefined.avatarID in ParticipantView
This commit is contained in:
parent
d74e43ddcc
commit
e6f906b9ca
|
@ -163,13 +163,13 @@ function _toBoolean(value, undefinedValue) {
|
||||||
*/
|
*/
|
||||||
function _mapStateToProps(state, ownProps) {
|
function _mapStateToProps(state, ownProps) {
|
||||||
const { participantId } = ownProps;
|
const { participantId } = ownProps;
|
||||||
|
const participant
|
||||||
|
= getParticipantById(
|
||||||
|
state['features/base/participants'],
|
||||||
|
participantId);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
_avatar:
|
_avatar: participant && getAvatarURL(participant),
|
||||||
getAvatarURL(
|
|
||||||
getParticipantById(
|
|
||||||
state['features/base/participants'],
|
|
||||||
participantId)),
|
|
||||||
_videoTrack:
|
_videoTrack:
|
||||||
getTrackByMediaTypeAndParticipant(
|
getTrackByMediaTypeAndParticipant(
|
||||||
state['features/base/tracks'],
|
state['features/base/tracks'],
|
||||||
|
|
Loading…
Reference in New Issue