mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Allow to schedule created polls.
This commit is contained in:
@@ -415,7 +415,7 @@ void ShareBox::createButtons() {
|
||||
const auto send = addButton(tr::lng_share_confirm(), [=] {
|
||||
submit({});
|
||||
});
|
||||
SetupSendWithoutSound(
|
||||
SetupSendMenu(
|
||||
send,
|
||||
[=] { return true; },
|
||||
[=] { submitSilent(); },
|
||||
@@ -469,14 +469,9 @@ void ShareBox::submitSilent() {
|
||||
}
|
||||
|
||||
void ShareBox::submitScheduled() {
|
||||
const auto callback = crl::guard(this, [=](Api::SendOptions options) {
|
||||
submit(options);
|
||||
});
|
||||
const auto callback = [=](Api::SendOptions options) { submit(options); };
|
||||
Ui::show(
|
||||
Box(
|
||||
HistoryView::ScheduleBox,
|
||||
callback,
|
||||
HistoryView::DefaultScheduleTime()),
|
||||
HistoryView::PrepareScheduleBox(this, callback),
|
||||
LayerOption::KeepOther);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user