commit
99774954a4
|
@ -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) {
|
||||
|
|
|
@ -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) => {
|
||||
|
|
Loading…
Reference in New Issue