[mirotalk] - fix MattermostController
This commit is contained in:
@@ -89,6 +89,11 @@ class MeetingService {
|
|||||||
class MattermostController {
|
class MattermostController {
|
||||||
constructor(app, config, htmlInjector, clientHtml) {
|
constructor(app, config, htmlInjector, clientHtml) {
|
||||||
try {
|
try {
|
||||||
|
if (!config || !config.enabled) {
|
||||||
|
log.info('MattermostController is disabled due to configuration');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
this.validateConfig(config);
|
this.validateConfig(config);
|
||||||
|
|
||||||
const tokenService = new TokenService(
|
const tokenService = new TokenService(
|
||||||
|
|||||||
Reference in New Issue
Block a user