Skip to content

Commit

Permalink
Update invalid-livechat-config issue
Browse files Browse the repository at this point in the history
  • Loading branch information
murtaza98 committed Nov 16, 2021
1 parent 0afc9cf commit 9f8bd8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/livechat/server/api/v1/videoCall.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Random } from 'meteor/random';
import { TAPi18n } from 'meteor/rocketchat:tap-i18n';

import { Messages, Rooms } from '../../../../models';
import { settings as rcSettings } from '../../../../settings';
import { settings as rcSettings } from '../../../../settings/server';
import { API } from '../../../../api/server';
import { findGuest, getRoom, settings } from '../lib/livechat';
import { OmnichannelSourceType } from '../../../../../definition/IRoom';
Expand Down Expand Up @@ -92,7 +92,7 @@ API.v1.addRoute('livechat/webrtc.call', { authRequired: true }, {
throw new Meteor.Error('webRTC calling not enabled');
}

const config = settings();
const config = Promise.await(settings());
if (!config.theme || !config.theme.actionLinks || !config.theme.actionLinks.webrtc) {
throw new Meteor.Error('invalid-livechat-config');
}
Expand Down

0 comments on commit 9f8bd8b

Please sign in to comment.