Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

Coding style

Lyubo Marinov8948c837d325
diff --git a/react/features/base/participants/reducer.js b/react/features/base/participants/reducer.js
index 01b70a27e4..aa40e44493 100644
--- a/react/features/base/participants/reducer.js
+++ b/react/features/base/participants/reducer.js
@@ -68,7 +68,7 @@ function _participant(state: Object = {}, action) {
break;
case PARTICIPANT_JOINED: {
- const participant = action.participant; // eslint-disable-line no-shadow
+ const { participant } = action; // eslint-disable-line no-shadow
const {
avatarURL,
connectionStatus,
@@ -114,9 +114,9 @@ function _participant(state: Object = {}, action) {
}
case PARTICIPANT_UPDATED: {
- const participant = action.participant; // eslint-disable-line no-shadow
- const { local } = participant;
+ const { participant } = action; // eslint-disable-line no-shadow
let { id } = participant;
+ const { local } = participant;
if (!id && local) {
id = LOCAL_PARTICIPANT_DEFAULT_ID;