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