Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
feat(vpaas): Send billing id to prosody
Vlad Piersecbfc4b2ac6f0c
diff --git a/package.json b/package.jsonindex 1cf2face80..e23b186550 100644--- a/package.json+++ b/package.json@@ -49,14 +49,14 @@"i18next": "17.0.6","i18next-browser-languagedetector": "3.0.1","i18next-xhr-backend": "3.0.0",- "jQuery-Impromptu": "github:trentrichardson/jQuery-Impromptu#v6.0.0","jitsi-meet-logger": "github:jitsi/jitsi-meet-logger#v1.0.0","jquery": "3.5.1","jquery-contextmenu": "2.4.5","jquery-i18next": "1.2.1",+ "jQuery-Impromptu": "github:trentrichardson/jQuery-Impromptu#v6.0.0","js-md5": "0.6.1","jwt-decode": "2.2.0",- "lib-jitsi-meet": "github:jitsi/lib-jitsi-meet#77978f0e621f463ed606fe94dda25ff18f1d5f64",+ "lib-jitsi-meet": "github:jitsi/lib-jitsi-meet#30c87957701eb9fc6a6b69a5cc6dc273f7955b05","libflacjs": "github:mmig/libflac.js#93d37e7f811f01cf7d8b6a603e38bd3c3810907d","lodash": "4.17.19","moment": "2.19.4",diff --git a/react/features/billing-counter/functions.js b/react/features/billing-counter/functions.jsindex f6f9655347..344f1ac04c 100644--- a/react/features/billing-counter/functions.js+++ b/react/features/billing-counter/functions.js@@ -78,7 +78,6 @@ export async function sendCountRequest({ baseUrl, billingId, jwt, tenant }: {* @returns {string}*/export function getBillingId() {-let billingId = jitsiLocalStorage.getItem(BILLING_ID);if (!billingId) {@@ -88,3 +87,15 @@ export function getBillingId() {return billingId;}++/**+ * Returns the billing id for vpaas meetings.+ *+ * @param {Object} state - The state of the app.+ * @returns {string | undefined}+ */+export function getVpaasBillingId(state: Object) {+ if (isVpaasMeeting(state)) {+ return getBillingId();+ }+}diff --git a/react/features/conference/functions.web.js b/react/features/conference/functions.web.jsindex 80634c06d5..3544e72ae6 100644--- a/react/features/conference/functions.web.js+++ b/react/features/conference/functions.web.js@@ -4,6 +4,7 @@ import { translateToHTML } from '../base/i18n';import { getLocalParticipant } from '../base/participants';import { toState } from '../base/redux';import { getBackendSafePath, getJitsiMeetGlobalNS } from '../base/util';+import { getVpaasBillingId } from '../billing-counter/functions';import { showWarningNotification } from '../notifications';import { createRnnoiseProcessorPromise } from '../rnnoise';@@ -84,6 +85,7 @@ export function getConferenceOptions(stateful) {options.applicationName = getName();options.getWiFiStatsMethod = getWiFiStatsMethod;options.createVADProcessor = createRnnoiseProcessorPromise;+ options.billingId = getVpaasBillingId(state);// Disable CallStats, if requessted.if (options.disableThirdPartyRequests) {