Skip to content

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

[RN] Set the local user ID on CONFERENCE_WILL_JOIN

Saúl Ibarra Corretgé494e8eb8d967
diff --git a/react/features/base/participants/middleware.js b/react/features/base/participants/middleware.js
index ac447095c8..6c4c645055 100644
--- a/react/features/base/participants/middleware.js
+++ b/react/features/base/participants/middleware.js
@@ -4,7 +4,7 @@ import UIEvents from '../../../../service/UI/UIEvents';
import { APP_WILL_MOUNT, APP_WILL_UNMOUNT } from '../../app';
import {
- CONFERENCE_JOINED,
+ CONFERENCE_WILL_JOIN,
CONFERENCE_LEFT
} from '../conference';
import { MiddlewareRegistry } from '../redux';
@@ -59,10 +59,12 @@ MiddlewareRegistry.register(store => next => action => {
_registerSounds(store);
return _localParticipantJoined(store, next, action);
+
case APP_WILL_UNMOUNT:
_unregisterSounds(store);
break;
- case CONFERENCE_JOINED:
+
+ case CONFERENCE_WILL_JOIN:
store.dispatch(localParticipantIdChanged(action.conference.myUserId()));
break;