From 424c6c21387797e2a42acecd7d4453b824b49fb6 Mon Sep 17 00:00:00 2001 From: Albert Gasset Date: Tue, 13 Nov 2018 10:04:45 +0100 Subject: [PATCH] MOBILE-2620 notifications: Fix type of message displayed --- src/addon/notifications/providers/notifications.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/addon/notifications/providers/notifications.ts b/src/addon/notifications/providers/notifications.ts index bbd74caa4..4bc082d81 100644 --- a/src/addon/notifications/providers/notifications.ts +++ b/src/addon/notifications/providers/notifications.ts @@ -48,7 +48,7 @@ export class AddonNotificationsProvider { protected formatNotificationsData(notifications: any[]): void { notifications.forEach((notification) => { // Set message to show. - if (notification.contexturl && notification.contexturl.indexOf('/mod/forum/')) { + if (notification.contexturl && notification.contexturl.indexOf('/mod/forum/') >= 0) { notification.mobiletext = notification.smallmessage; } else { notification.mobiletext = notification.fullmessage;