MOBILE-3039 message: Fix confirm delete self conv messages
parent
1c033bf023
commit
1647cad957
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue