[FIX] Delay start of email inbox (#23521)

pull/23528/head
Kevin Aleman 4 years ago committed by GitHub
parent ce8870da5e
commit efb8ceaa24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      server/features/EmailInbox/EmailInbox.ts

@ -7,6 +7,7 @@ import { IMAPInterceptor } from '../../email/IMAPInterceptor';
import { IEmailInbox } from '../../../definition/IEmailInbox';
import { onEmailReceived } from './EmailInbox_Incoming';
import { logger } from './logger';
import { settings } from '../../../app/settings/server';
export type Inbox = {
imap: IMAPInterceptor;
@ -81,5 +82,7 @@ export async function configureEmailInboxes(): Promise<void> {
}
Meteor.startup(() => {
configureEmailInboxes();
settings.watchOnce('Livechat_Routing_Method', (_) => {
configureEmailInboxes();
});
});

Loading…
Cancel
Save