mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Replaced box for auto-delete settings with menu.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user