Merge pull request #1928 from dpalou/MOBILE-3039

Mobile 3039
main
Juan Leyva 2019-05-21 13:33:32 +02:00 committed by GitHub
commit 99774954a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -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) {

View File

@ -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) => {