mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Delete history for specific days in private chats.
This commit is contained in:
@@ -6782,13 +6782,10 @@ void HistoryWidget::confirmDeleteSelected() {
|
||||
if (items.empty()) {
|
||||
return;
|
||||
}
|
||||
const auto weak = Ui::MakeWeak(this);
|
||||
auto box = Box<DeleteMessagesBox>(&session(), std::move(items));
|
||||
box->setDeleteConfirmedCallback([=] {
|
||||
if (const auto strong = weak.data()) {
|
||||
strong->clearSelected();
|
||||
}
|
||||
});
|
||||
box->setDeleteConfirmedCallback(crl::guard(this, [=] {
|
||||
clearSelected();
|
||||
}));
|
||||
controller()->show(std::move(box));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user