2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +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

@@ -1369,13 +1369,15 @@ SendFilesBox::SendFilesBox(
const TextWithTags &caption,
CompressConfirm compressed,
SendLimit limit,
Api::SendType sendType)
Api::SendType sendType,
SendMenuType sendMenuType)
: _controller(controller)
, _sendType(sendType)
, _list(std::move(list))
, _compressConfirmInitial(compressed)
, _compressConfirm(compressed)
, _sendLimit(limit)
, _sendMenuType(sendMenuType)
, _caption(
this,
st::confirmCaptionArea,
@@ -1476,7 +1478,7 @@ void SendFilesBox::prepare() {
if (_sendType == Api::SendType::Normal) {
SetupSendMenu(
_send,
[=] { return true; },
[=] { return _sendMenuType; },
[=] { sendSilent(); },
[=] { sendScheduled(); });
}
@@ -1973,7 +1975,7 @@ void SendFilesBox::sendSilent() {
void SendFilesBox::sendScheduled() {
const auto callback = [=](Api::SendOptions options) { send(options); };
Ui::show(
HistoryView::PrepareScheduleBox(this, callback),
HistoryView::PrepareScheduleBox(this, _sendMenuType, callback),
LayerOption::KeepOther);
}