|
@@ -68,7 +68,7 @@ function _participant(state: Object = {}, action) {
|
68
|
68
|
break;
|
69
|
69
|
|
70
|
70
|
case PARTICIPANT_JOINED: {
|
71
|
|
- const participant = action.participant; // eslint-disable-line no-shadow
|
|
71
|
+ const { participant } = action; // eslint-disable-line no-shadow
|
72
|
72
|
const {
|
73
|
73
|
avatarURL,
|
74
|
74
|
connectionStatus,
|
|
@@ -114,9 +114,9 @@ function _participant(state: Object = {}, action) {
|
114
|
114
|
}
|
115
|
115
|
|
116
|
116
|
case PARTICIPANT_UPDATED: {
|
117
|
|
- const participant = action.participant; // eslint-disable-line no-shadow
|
118
|
|
- const { local } = participant;
|
|
117
|
+ const { participant } = action; // eslint-disable-line no-shadow
|
119
|
118
|
let { id } = participant;
|
|
119
|
+ const { local } = participant;
|
120
|
120
|
|
121
|
121
|
if (!id && local) {
|
122
|
122
|
id = LOCAL_PARTICIPANT_DEFAULT_ID;
|