Explorar el Código

[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.
j8
Saúl Ibarra Corretgé hace 7 años
padre
commit
494e8eb8d9
Se han modificado 1 ficheros con 4 adiciones y 2 borrados
  1. 4
    2
      react/features/base/participants/middleware.js

+ 4
- 2
react/features/base/participants/middleware.js Ver fichero

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

Loading…
Cancelar
Guardar