Bläddra i källkod

[RN] Set the local user ID on CONFERENCE_WILL_JOIN

Doing so in CONFERENCE_JOINED is too late because if we are moderators that
event will come first and we won't know what ID to match it with.

This is safe because our local ID is created early.
master
Saúl Ibarra Corretgé 7 år sedan
förälder
incheckning
494e8eb8d9
1 ändrade filer med 4 tillägg och 2 borttagningar
  1. 4
    2
      react/features/base/participants/middleware.js

+ 4
- 2
react/features/base/participants/middleware.js Visa fil

@@ -4,7 +4,7 @@ import UIEvents from '../../../../service/UI/UIEvents';
4 4
 
5 5
 import { APP_WILL_MOUNT, APP_WILL_UNMOUNT } from '../../app';
6 6
 import {
7
-    CONFERENCE_JOINED,
7
+    CONFERENCE_WILL_JOIN,
8 8
     CONFERENCE_LEFT
9 9
 } from '../conference';
10 10
 import { MiddlewareRegistry } from '../redux';
@@ -59,10 +59,12 @@ MiddlewareRegistry.register(store => next => action => {
59 59
         _registerSounds(store);
60 60
 
61 61
         return _localParticipantJoined(store, next, action);
62
+
62 63
     case APP_WILL_UNMOUNT:
63 64
         _unregisterSounds(store);
64 65
         break;
65
-    case CONFERENCE_JOINED:
66
+
67
+    case CONFERENCE_WILL_JOIN:
66 68
         store.dispatch(localParticipantIdChanged(action.conference.myUserId()));
67 69
         break;
68 70
 

Laddar…
Avbryt
Spara