From 58443bc197474a2830c63ae6e6efba68a9e2ef43 Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Thu, 22 Feb 2024 15:33:51 +0300 Subject: [PATCH] Fixed ability to schedule forwarded messages without comment. --- .../history/view/history_view_scheduled_section.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/history/view/history_view_scheduled_section.cpp b/Telegram/SourceFiles/history/view/history_view_scheduled_section.cpp index 6e019e6eb..af2008ed8 100644 --- a/Telegram/SourceFiles/history/view/history_view_scheduled_section.cpp +++ b/Telegram/SourceFiles/history/view/history_view_scheduled_section.cpp @@ -563,7 +563,7 @@ Api::SendAction ScheduledWidget::prepareSendAction( void ScheduledWidget::send() { const auto textWithTags = _composeControls->getTextWithAppliedMarkdown(); - if (textWithTags.text.isEmpty()) { + if (textWithTags.text.isEmpty() && !_composeControls->readyToForward()) { return; } @@ -592,6 +592,7 @@ void ScheduledWidget::send(Api::SendOptions options) { session().api().sendMessage(std::move(message)); + _composeControls->cancelForward(); _composeControls->clear(); //_saveDraftText = true; //_saveDraftStart = crl::now();