subject: only try to update the subject when the rol;e changes
Skip processing any other participant updates.
This commit is contained in:
parent
8115f86f59
commit
eed57e7999
|
@ -615,15 +615,16 @@ function _updateLocalParticipantInConference({ dispatch, getState }, next, actio
|
||||||
conference.setDisplayName(participant.name);
|
conference.setDisplayName(participant.name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ('role' in participant && participant.role === PARTICIPANT_ROLE.MODERATOR) {
|
||||||
const { pendingSubjectChange, subject } = getState()['features/base/conference'];
|
const { pendingSubjectChange, subject } = getState()['features/base/conference'];
|
||||||
const isModerator = participant.role === PARTICIPANT_ROLE.MODERATOR;
|
|
||||||
|
|
||||||
// when local user role is updated to moderator and we have a pending subject change
|
// When the local user role is updated to moderator and we have a pending subject change
|
||||||
// which was not reflected we need to set it (the first time we tried was before becoming moderator)
|
// which was not reflected we need to set it (the first time we tried was before becoming moderator).
|
||||||
if (isModerator && pendingSubjectChange !== subject) {
|
if (pendingSubjectChange !== subject) {
|
||||||
dispatch(setSubject(pendingSubjectChange));
|
dispatch(setSubject(pendingSubjectChange));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue