Skip to content
Snippets Groups Projects
Commit 0834f4bd authored by Anton Georgiev's avatar Anton Georgiev
Browse files

handle edge case for credentials where meeting is removed

parent 1fa42605
No related branches found
No related tags found
No related merge requests found
......@@ -65,6 +65,7 @@ export const hashFNV32a = (str, asString, seed) => {
/* eslint-enable */
export const extractCredentials = (credentials) => {
if (!credentials) return {};
const credentialsArray = credentials.split('--');
const meetingId = credentialsArray[0];
const requesterUserId = credentialsArray[1];
......
......@@ -4,6 +4,7 @@ import { extractCredentials } from '/imports/api/common/server/helpers';
export default function destroyExternalVideo() {
const { meetingId } = extractCredentials(this.userId);
if (!meetingId) return;
const streamName = `external-videos-${meetingId}`;
if (Meteor.StreamerCentral.instances[streamName]) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment