2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 22:55:11 +00:00

Add new phrases for reminders.

This commit is contained in:
John Preston
2019-08-28 19:46:47 +03:00
parent 0a4f91a53d
commit 87addd41b1
15 changed files with 113 additions and 36 deletions

View File

@@ -719,7 +719,10 @@ object_ptr<Ui::RpWidget> CreatePollBox::setupContent() {
};
const auto sendScheduled = [=] {
Ui::show(
HistoryView::PrepareScheduleBox(this, send),
HistoryView::PrepareScheduleBox(
this,
SendMenuType::Scheduled,
send),
LayerOption::KeepOther);
};
const auto updateValid = [=] {
@@ -740,7 +743,7 @@ object_ptr<Ui::RpWidget> CreatePollBox::setupContent() {
if (_sendType == Api::SendType::Normal) {
SetupSendMenu(
submit.data(),
[=] { return true; },
[=] { return SendMenuType::Scheduled; },
sendSilent,
sendScheduled);
}