From 4a680e11ace8d82aeb968dae47b492a7cc46f41d Mon Sep 17 00:00:00 2001 From: hristoterezov Date: Fri, 25 May 2018 15:30:28 -0500 Subject: [PATCH] fix(analytics): Room name persistant prop. --- react/features/analytics/middleware.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/react/features/analytics/middleware.js b/react/features/analytics/middleware.js index 6ff0a9735..f0b548a05 100644 --- a/react/features/analytics/middleware.js +++ b/react/features/analytics/middleware.js @@ -1,5 +1,5 @@ +import { SET_ROOM } from '../base/conference'; import { MiddlewareRegistry } from '../base/redux'; -import { LIB_DID_INIT } from '../base/lib-jitsi-meet'; import { initAnalytics } from './functions'; @@ -12,9 +12,12 @@ import { initAnalytics } from './functions'; */ MiddlewareRegistry.register(store => next => action => { switch (action.type) { - case LIB_DID_INIT: { + case SET_ROOM: { + const result = next(action); + initAnalytics(store); - break; + + return result; } }