fix(screenshot-capture) Update data sent to backend (#10364)

This commit is contained in:
Robert Pintilii 2021-11-15 14:59:06 +02:00 committed by GitHub
parent 8ebca64af1
commit c74bdf137c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 3 deletions

View File

@ -6,6 +6,7 @@ import './createImageBitmap';
import { createScreensharingCaptureTakenEvent, sendAnalytics } from '../analytics';
import { getCurrentConference } from '../base/conference';
import { extractFqnFromPath } from '../dynamic-branding/functions';
import {
CLEAR_INTERVAL,
@ -134,10 +135,11 @@ export default class ScreenshotCaptureSummary {
const conference = getCurrentConference(this._state);
const sessionId = conference.getMeetingUniqueId();
const { connection, timeEstablished } = this._state['features/base/connection'];
const { connection } = this._state['features/base/connection'];
const jid = connection.getJid();
const timeLapseSeconds = timeEstablished && Math.floor((Date.now() - timeEstablished) / 1000);
const timestamp = Date.now();
const { jwt } = this._state['features/base/jwt'];
const meetingFqn = extractFqnFromPath();
this._storedImageData = imageData;
@ -145,7 +147,8 @@ export default class ScreenshotCaptureSummary {
jid,
jwt,
sessionId,
timeLapseSeconds
timestamp,
meetingFqn
});
}