|
|
@ -13,10 +13,7 @@ import PopupPeer, { PopupPeerButtonCallbackCheckboxes, PopupPeerOptions } from " |
|
|
|
|
|
|
|
|
|
|
|
export default class PopupDeleteDialog { |
|
|
|
export default class PopupDeleteDialog { |
|
|
|
constructor(peerId: number, peerType: PeerType = appPeersManager.getDialogType(peerId), onSelect?: (promise: Promise<any>) => void) { |
|
|
|
constructor(peerId: number, peerType: PeerType = appPeersManager.getDialogType(peerId), onSelect?: (promise: Promise<any>) => void) { |
|
|
|
const peerTitleElement = new PeerTitle({ |
|
|
|
const peerTitleElement = new PeerTitle({peerId}).element; |
|
|
|
peerId, |
|
|
|
|
|
|
|
onlyFirstName: true |
|
|
|
|
|
|
|
}).element; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* const callbackFlush = (checked: PopupPeerButtonCallbackCheckboxes) => { |
|
|
|
/* const callbackFlush = (checked: PopupPeerButtonCallbackCheckboxes) => { |
|
|
|
const promise = appMessagesManager.flushHistory(peerId, checkboxes ? !checked[checkboxes[0].text] : undefined); |
|
|
|
const promise = appMessagesManager.flushHistory(peerId, checkboxes ? !checked[checkboxes[0].text] : undefined); |
|
|
@ -86,10 +83,7 @@ export default class PopupDeleteDialog { |
|
|
|
checkboxes = [{ |
|
|
|
checkboxes = [{ |
|
|
|
text: 'DeleteMessagesOptionAlso', |
|
|
|
text: 'DeleteMessagesOptionAlso', |
|
|
|
textArgs: [ |
|
|
|
textArgs: [ |
|
|
|
new PeerTitle({ |
|
|
|
new PeerTitle({peerId}).element |
|
|
|
peerId, |
|
|
|
|
|
|
|
onlyFirstName: true |
|
|
|
|
|
|
|
}).element |
|
|
|
|
|
|
|
] |
|
|
|
] |
|
|
|
}]; |
|
|
|
}]; |
|
|
|
|
|
|
|
|
|
|
|