commit
99774954a4
|
@ -811,7 +811,8 @@ export class AddonMessagesDiscussionPage implements OnDestroy {
|
||||||
*/
|
*/
|
||||||
deleteMessage(message: any, index: number): void {
|
deleteMessage(message: any, index: number): void {
|
||||||
const canDeleteAll = this.conversation && this.conversation.candeletemessagesforallusers,
|
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 = {};
|
options: any = {};
|
||||||
|
|
||||||
if (canDeleteAll && !message.pending) {
|
if (canDeleteAll && !message.pending) {
|
||||||
|
|
|
@ -136,8 +136,8 @@ export class CoreLocalNotificationsProvider {
|
||||||
this.handleEvent('cancel', notification);
|
this.handleEvent('cancel', notification);
|
||||||
});
|
});
|
||||||
|
|
||||||
this.addSubscription = localNotifications.on('add').subscribe((notification: ILocalNotification) => {
|
this.addSubscription = localNotifications.on('schedule').subscribe((notification: ILocalNotification) => {
|
||||||
this.handleEvent('add', notification);
|
this.handleEvent('schedule', notification);
|
||||||
});
|
});
|
||||||
|
|
||||||
this.updateSubscription = localNotifications.on('update').subscribe((notification: ILocalNotification) => {
|
this.updateSubscription = localNotifications.on('update').subscribe((notification: ILocalNotification) => {
|
||||||
|
|
Loading…
Reference in New Issue