MOBILE-2620 notifications: Fix type of message displayed
parent
3c4341061d
commit
424c6c2138
|
@ -48,7 +48,7 @@ export class AddonNotificationsProvider {
|
||||||
protected formatNotificationsData(notifications: any[]): void {
|
protected formatNotificationsData(notifications: any[]): void {
|
||||||
notifications.forEach((notification) => {
|
notifications.forEach((notification) => {
|
||||||
// Set message to show.
|
// 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;
|
notification.mobiletext = notification.smallmessage;
|
||||||
} else {
|
} else {
|
||||||
notification.mobiletext = notification.fullmessage;
|
notification.mobiletext = notification.fullmessage;
|
||||||
|
|
Loading…
Reference in New Issue