Skip to content

Commit

Permalink
squash: fix comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
damencho committed Oct 22, 2024
1 parent de7a496 commit 90d6f00
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions react/features/base/participants/reducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -512,10 +512,10 @@ ReducerRegistry.register<IParticipantsState>('features/base/participants',
const p = state.remote.get(key);

if (p && !p.isPromoted) {
const newParticipant = _participant(p, action);
const { participant } = action;

newParticipant.isPromoted = true;
state.remote.set(key, newParticipant);
participant.isPromoted = true;
state.remote.set(key, { ...participant });
participantProcessed = true;
}
});
Expand Down Expand Up @@ -573,8 +573,7 @@ function _participant(state: IParticipant | ILocalParticipant = { id: '' },
action: AnyAction): IParticipant | ILocalParticipant {
switch (action.type) {
case SET_LOADABLE_AVATAR_URL:
case PARTICIPANT_UPDATED:
case UPDATE_CONFERENCE_METADATA: {
case PARTICIPANT_UPDATED: {
const { participant } = action; // eslint-disable-line no-shadow

const newState = { ...state };
Expand Down

0 comments on commit 90d6f00

Please sign in to comment.