diff --git a/Telegram/SourceFiles/boxes/share_box.cpp b/Telegram/SourceFiles/boxes/share_box.cpp index be47e59a1..2d80be497 100644 --- a/Telegram/SourceFiles/boxes/share_box.cpp +++ b/Telegram/SourceFiles/boxes/share_box.cpp @@ -562,6 +562,9 @@ void ShareBox::showMenu(not_null parent) { submit(action.options); return; } + const auto st = _descriptor.st.scheduleBox + ? *_descriptor.st.scheduleBox + : HistoryView::ScheduleBoxStyleArgs(); uiShow()->showBox( HistoryView::PrepareScheduleBox( this, @@ -570,7 +573,7 @@ void ShareBox::showMenu(not_null parent) { [=](Api::SendOptions options) { submit(options); }, action.options, HistoryView::DefaultScheduleTime(), - *_descriptor.st.scheduleBox)); + st)); }); _menu->setForcedVerticalOrigin(Ui::PopupMenu::VerticalOrigin::Bottom); const auto result = FillSendMenu(