Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
subject: only try to update the subject when the rol;e changes
Saúl Ibarra Corretgéeed57e7999bd
diff --git a/react/features/base/conference/middleware.js b/react/features/base/conference/middleware.jsindex 133d6995b1..130729bea9 100644--- a/react/features/base/conference/middleware.js+++ b/react/features/base/conference/middleware.js@@ -615,13 +615,14 @@ function _updateLocalParticipantInConference({ dispatch, getState }, next, actioconference.setDisplayName(participant.name);}- const { pendingSubjectChange, subject } = getState()['features/base/conference'];- const isModerator = participant.role === PARTICIPANT_ROLE.MODERATOR;+ if ('role' in participant && participant.role === PARTICIPANT_ROLE.MODERATOR) {+ const { pendingSubjectChange, subject } = getState()['features/base/conference'];- // when 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)- if (isModerator && pendingSubjectChange !== subject) {- dispatch(setSubject(pendingSubjectChange));+ // 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).+ if (pendingSubjectChange !== subject) {+ dispatch(setSubject(pendingSubjectChange));+ }}}