MOBILE-3039 message: Fix confirm delete self conv messages

main
Dani Palou 2019-05-21 12:54:31 +02:00
parent 1c033bf023
commit 1647cad957
1 changed files with 2 additions and 1 deletions

View File

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