2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Start schedule message box.

This commit is contained in:
John Preston
2019-08-13 16:35:49 +01:00
parent 03cdddfe18
commit debeb61540
9 changed files with 162 additions and 11 deletions

View File

@@ -15,6 +15,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "chat_helpers/emoji_suggestions_widget.h"
#include "chat_helpers/tabbed_panel.h"
#include "chat_helpers/tabbed_selector.h"
#include "history/view/history_view_schedule_box.h"
#include "core/file_utilities.h"
#include "core/mime_type.h"
#include "core/event_filter.h"
@@ -1962,9 +1963,10 @@ void SendFilesBox::sendSilent() {
}
void SendFilesBox::sendScheduled() {
auto options = Api::SendOptions();
options.scheduled = INT_MAX;
send(options);
Ui::show(Box(HistoryView::ScheduleBox, crl::guard(this, [=](
Api::SendOptions options) {
send(options);
})), LayerOption::KeepOther);
}
SendFilesBox::~SendFilesBox() = default;