From 9ec73ced85b5cfc0e5871943f1f03bb5afe34f97 Mon Sep 17 00:00:00 2001 From: Taymoor Khan Date: Wed, 29 Sep 2021 13:23:09 -0700 Subject: [PATCH] fix(meetings): always add locus url to metrics payload --- .../@webex/plugin-meetings/src/meeting/index.js | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/packages/node_modules/@webex/plugin-meetings/src/meeting/index.js b/packages/node_modules/@webex/plugin-meetings/src/meeting/index.js index c299d104d3e..060e6f53302 100644 --- a/packages/node_modules/@webex/plugin-meetings/src/meeting/index.js +++ b/packages/node_modules/@webex/plugin-meetings/src/meeting/index.js @@ -971,7 +971,6 @@ export default class Meeting extends StatelessWebexPlugin { const { event, trackingId, - locus, mediaConnections } = options; @@ -985,16 +984,11 @@ export default class Meeting extends StatelessWebexPlugin { correlationId: this.correlationId, userId: this.userId, deviceId: this.deviceUrl, - orgId: this.orgId + orgId: this.orgId, + locusUrl: this.webex.internal.services.get('locus') }; - // If locus is passed take the value from there else use meeting object - if (locus) { - identifiers.locusUrl = locus.url; - identifiers.locusId = locus.url.split('/').pop(); - identifiers.locusStartTime = locus.fullState.lastActive; - } - else if (this.locusUrl && this.locusInfo.fullState) { + if (this.locusUrl && this.locusInfo.fullState) { identifiers.locusUrl = this.locusUrl; identifiers.locusId = this.locusUrl && this.locusUrl.split('/').pop(); identifiers.locusStartTime = this.locusInfo.fullState && this.locusInfo.fullState.lastActive;