forked from EVOgeek/Vmeda.Online
MOBILE-2620 notifications: Fix type of message displayed
This commit is contained in:
parent
3c4341061d
commit
424c6c2138
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user