Replaced box for auto-delete settings with menu.

This commit is contained in:
23rd
2022-03-29 01:22:21 +03:00
committed by John Preston
parent fc71a640a6
commit 8fcd07863a
5 changed files with 59 additions and 33 deletions
@@ -236,6 +236,7 @@ void DeleteMessagesBox::prepare() {
|| (_wipeHistoryPeer->isChannel()
&& _wipeHistoryPeer->asChannel()->canDeleteMessages()))) {
_wipeHistoryPeer->updateFull();
#if 0
_autoDeleteSettings.create(
this,
(_wipeHistoryPeer->messagesTTL()
@@ -245,10 +246,11 @@ void DeleteMessagesBox::prepare() {
_autoDeleteSettings->setClickedCallback([=] {
getDelegate()->show(
Box(
HistoryView::Controls::AutoDeleteSettingsBox,
HistoryView::Controls::AutoDeleteSettingsMenu,
_wipeHistoryPeer),
Ui::LayerOption(0));
});
#endif
}
if (canDelete) {