Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

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

Boris Grozeve898527294ce
diff --git a/react/features/analytics/functions.js b/react/features/analytics/functions.js
index 5b5b47832f..ca334d3cf3 100644
--- a/react/features/analytics/functions.js
+++ b/react/features/analytics/functions.js
@@ -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) {