mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-18 07:07:08 +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() {
|
||||
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();
|
||||
|
|
Loading…
Add table
Reference in a new issue