diff --git a/src/addon/messages/pages/discussion/discussion.ts b/src/addon/messages/pages/discussion/discussion.ts index 96548bee7..853494ce1 100644 --- a/src/addon/messages/pages/discussion/discussion.ts +++ b/src/addon/messages/pages/discussion/discussion.ts @@ -811,7 +811,8 @@ export class AddonMessagesDiscussionPage implements OnDestroy { */ deleteMessage(message: any, index: number): void { const canDeleteAll = this.conversation && this.conversation.candeletemessagesforallusers, - langKey = message.pending || canDeleteAll ? 'core.areyousure' : 'addon.messages.deletemessageconfirmation', + langKey = message.pending || canDeleteAll || this.isSelf ? 'core.areyousure' : + 'addon.messages.deletemessageconfirmation', options: any = {}; if (canDeleteAll && !message.pending) { diff --git a/src/providers/local-notifications.ts b/src/providers/local-notifications.ts index 5417b5ff3..308ffb4c7 100644 --- a/src/providers/local-notifications.ts +++ b/src/providers/local-notifications.ts @@ -136,8 +136,8 @@ export class CoreLocalNotificationsProvider { this.handleEvent('cancel', notification); }); - this.addSubscription = localNotifications.on('add').subscribe((notification: ILocalNotification) => { - this.handleEvent('add', notification); + this.addSubscription = localNotifications.on('schedule').subscribe((notification: ILocalNotification) => { + this.handleEvent('schedule', notification); }); this.updateSubscription = localNotifications.on('update').subscribe((notification: ILocalNotification) => {