Browse Source

auto acp scripted

dev
jfinn 5 years ago
parent
commit
c403445baf
1 changed files with 20 additions and 2 deletions
  1. 20
    2
      react/features/base/participants/reducer.js

+ 20
- 2
react/features/base/participants/reducer.js View File

@@ -63,16 +63,34 @@ const PARTICIPANT_PROPS_TO_OMIT_WHEN_UPDATE = [
63 63
  * @returns {Participant[]}
64 64
  */
65 65
 ReducerRegistry.register('features/base/participants', (state = [], action) => {
66
+    var ret
66 67
     switch (action.type) {
67 68
     case SET_LOADABLE_AVATAR_URL:
68 69
     case DOMINANT_SPEAKER_CHANGED:
69 70
     case PARTICIPANT_ID_CHANGED:
70 71
     case PARTICIPANT_UPDATED:
71 72
     case PIN_PARTICIPANT:
72
-        return state.map(p => _participant(p, action));
73
+        // var ret2 = _participant(p, action)
74
+        // ret =state.map(p => ret2);
75
+        ret =state.map(p => _participant(p, action));
76
+        ret = new Proxy(ret,gen_proxy())
77
+        // clog("ATYPE",{ret,ret2,p ,action})
78
+        clog("ATYPE",action.type,{ret})
79
+        return ret
80
+        // return state.map(p => _participant(p, action));
81
+
73 82
 
74 83
     case PARTICIPANT_JOINED:
75
-        return [ ...state, _participantJoined(action) ];
84
+            // dev inspect
85
+        const participant_new = _participantJoined(action)
86
+        clog("PARTICIPANT_JOINED RFN dev inspect",{state,action,participant_new})
87
+        ret = [ ...state, participant_new ]
88
+        clog("PARTICIPANT_JOINED RFN dev inspect2",ret)
89
+        ret = new Proxy(ret,gen_proxy())
90
+        clog("PARTICIPANT_JOINED RFN dev inspect3",ret)
91
+        // const ret = new Proxy([ ...state, participant_new ],rprox)
92
+        return ret;
93
+        // return [ ...state, _participantJoined(action) ];
76 94
 
77 95
     case PARTICIPANT_LEFT: {
78 96
         // XXX A remote participant is uniquely identified by their id in a

Loading…
Cancel
Save