MOBILE-2620 notifications: Fix type of message displayed

main
Albert Gasset 2018-11-13 10:04:45 +01:00
parent 3c4341061d
commit 424c6c2138
1 changed files with 1 additions and 1 deletions

View File

@ -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;