mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fixed ability to schedule forwarded messages without comment.
This commit is contained in:
parent
ea20e41f1d
commit
58443bc197
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue