From e2ac9c6e75866d4818d03b861e123ff93fd1fd43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Thu, 21 Jan 2021 14:16:28 +0100 Subject: [PATCH] MOBILE-3631 notifications: Use fallback on mark as read notifications --- src/addons/notifications/services/notifications.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/addons/notifications/services/notifications.ts b/src/addons/notifications/services/notifications.ts index 987259289..7a942f73e 100644 --- a/src/addons/notifications/services/notifications.ts +++ b/src/addons/notifications/services/notifications.ts @@ -19,7 +19,7 @@ import { CoreWSExternalWarning } from '@services/ws'; import { CoreTextUtils } from '@services/utils/text'; import { CoreTimeUtils } from '@services/utils/time'; import { CoreUser } from '@features/user/services/user'; -// @todo import { AddonMessages, AddonMessagesMarkMessageReadResult } from '@addon/messages/services/messages'; +import { AddonMessages, AddonMessagesMarkMessageReadResult } from '@addons/messages/services/messages'; import { CoreSite, CoreSiteWSPreSets } from '@classes/site'; import { CoreLogger } from '@singletons/logger'; import { makeSingleton } from '@singletons'; @@ -350,7 +350,7 @@ export class AddonNotificationsProvider { async markNotificationRead( notificationId: number, siteId?: string, - ): Promise { // @todo | AddonMessagesMarkMessageReadResult + ): Promise { const site = await CoreSites.instance.getSite(siteId); @@ -363,7 +363,7 @@ export class AddonNotificationsProvider { return site.write('core_message_mark_notification_read', params); } else { // Fallback for versions prior to 3.5. - // @todo return AddonMessageProvider.instance.markMessageRead(notificationId, site.id); + return AddonMessages.instance.markMessageRead(notificationId, site.id); } }