Fixed ability to schedule forwarded messages without comment.

This commit is contained in:
23rd 2024-02-22 15:33:51 +03:00 committed by John Preston
parent ea20e41f1d
commit 58443bc197
1 changed files with 2 additions and 1 deletions

View File

@ -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();