2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-01 06:55:58 +00:00

Check if it is possible to 'Send now.'

This commit is contained in:
John Preston
2019-08-30 16:17:46 +03:00
parent 470b67f557
commit d95e54cb1a
7 changed files with 40 additions and 20 deletions

View File

@@ -597,7 +597,7 @@ bool MainWidget::setForwardDraft(PeerId peerId, MessageIdsList &&items) {
Expects(peerId != 0);
const auto peer = session().data().peer(peerId);
const auto error = GetErrorTextForForward(
const auto error = GetErrorTextForSending(
peer,
session().data().idsToItems(items),
true);
@@ -685,7 +685,7 @@ void MainWidget::finishForwarding(Api::SendAction action) {
const auto history = action.history;
auto toForward = history->validateForwardDraft();
if (!toForward.empty()) {
const auto error = GetErrorTextForForward(history->peer, toForward);
const auto error = GetErrorTextForSending(history->peer, toForward);
if (!error.isEmpty()) {
return;
}