MOBILE-3636 messages: Fix messages sync cron

main
Pau Ferrer Ocaña 2021-02-23 15:55:02 +01:00
parent a3ef52a040
commit 4cf2a40ca7
1 changed files with 2 additions and 1 deletions

View File

@ -34,6 +34,7 @@ import { CoreUserDelegate } from '@features/user/services/user-delegate';
import { AddonMessagesSendMessageUserHandler } from './services/handlers/user-send-message';
import { Network, NgZone } from '@singletons';
import { AddonMessagesSync } from './services/messages-sync';
import { AddonMessagesSyncCronHandler } from './services/handlers/sync-cron';
const mainMenuChildrenRoutes: Routes = [
{
@ -61,7 +62,7 @@ const mainMenuChildrenRoutes: Routes = [
// Register handlers.
CoreMainMenuDelegate.instance.registerHandler(AddonMessagesMainMenuHandler.instance);
CoreCronDelegate.instance.register(AddonMessagesMainMenuHandler.instance);
CoreCronDelegate.instance.register(AddonMessagesPushClickHandler.instance);
CoreCronDelegate.instance.register(AddonMessagesSyncCronHandler.instance);
CoreSettingsDelegate.instance.registerHandler(AddonMessagesSettingsHandler.instance);
CoreContentLinksDelegate.instance.registerHandler(AddonMessagesIndexLinkHandler.instance);
CoreContentLinksDelegate.instance.registerHandler(AddonMessagesDiscussionLinkHandler.instance);