Browse Source

fix(analytics): Room name persistant prop.

master
hristoterezov 7 years ago
parent
commit
4a680e11ac
1 changed files with 6 additions and 3 deletions
  1. 6
    3
      react/features/analytics/middleware.js

+ 6
- 3
react/features/analytics/middleware.js View File

1
+import { SET_ROOM } from '../base/conference';
1
 import { MiddlewareRegistry } from '../base/redux';
2
 import { MiddlewareRegistry } from '../base/redux';
2
-import { LIB_DID_INIT } from '../base/lib-jitsi-meet';
3
 
3
 
4
 import { initAnalytics } from './functions';
4
 import { initAnalytics } from './functions';
5
 
5
 
12
  */
12
  */
13
 MiddlewareRegistry.register(store => next => action => {
13
 MiddlewareRegistry.register(store => next => action => {
14
     switch (action.type) {
14
     switch (action.type) {
15
-    case LIB_DID_INIT: {
15
+    case SET_ROOM: {
16
+        const result = next(action);
17
+
16
         initAnalytics(store);
18
         initAnalytics(store);
17
-        break;
19
+
20
+        return result;
18
     }
21
     }
19
     }
22
     }
20
 
23
 

Loading…
Cancel
Save