Fixed ability to schedule forwarded messages without comment.
This commit is contained in:
parent
ea20e41f1d
commit
58443bc197
|
@ -563,7 +563,7 @@ Api::SendAction ScheduledWidget::prepareSendAction(
|
||||||
|
|
||||||
void ScheduledWidget::send() {
|
void ScheduledWidget::send() {
|
||||||
const auto textWithTags = _composeControls->getTextWithAppliedMarkdown();
|
const auto textWithTags = _composeControls->getTextWithAppliedMarkdown();
|
||||||
if (textWithTags.text.isEmpty()) {
|
if (textWithTags.text.isEmpty() && !_composeControls->readyToForward()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -592,6 +592,7 @@ void ScheduledWidget::send(Api::SendOptions options) {
|
||||||
|
|
||||||
session().api().sendMessage(std::move(message));
|
session().api().sendMessage(std::move(message));
|
||||||
|
|
||||||
|
_composeControls->cancelForward();
|
||||||
_composeControls->clear();
|
_composeControls->clear();
|
||||||
//_saveDraftText = true;
|
//_saveDraftText = true;
|
||||||
//_saveDraftStart = crl::now();
|
//_saveDraftStart = crl::now();
|
||||||
|
|
Loading…
Reference in New Issue