feat: Passes the "group" from JWT to the analytics handler constructor.

This commit is contained in:
Boris Grozev 2018-01-04 09:11:35 -06:00
parent bfcd34358b
commit e898527294
1 changed files with 4 additions and 4 deletions

View File

@ -40,16 +40,16 @@ export function initAnalytics({ getState }: { getState: Function }) {
const state = getState();
const config = state['features/base/config'];
const { analyticsScriptUrls } = config;
const { user } = state['features/base/jwt'];
const { group, server, user } = state['features/base/jwt'];
const handlerConstructorOptions = {
version: JitsiMeetJS.version,
user
group,
user,
version: JitsiMeetJS.version
};
_loadHandlers(analyticsScriptUrls, handlerConstructorOptions)
.then(handlers => {
const roomName = state['features/base/conference'].room;
const { group, server } = state['features/base/jwt'];
const permanentProperties = {};
if (server) {