2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +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

@@ -114,7 +114,7 @@ bool HasInlineItems(const HistoryItemsList &items) {
} // namespace
QString GetErrorTextForForward(
QString GetErrorTextForSending(
not_null<PeerData*> peer,
const HistoryItemsList &items,
const TextWithTags &comment,
@@ -234,7 +234,7 @@ void FastShareMessage(not_null<HistoryItem*> item) {
const auto error = [&] {
for (const auto peer : result) {
const auto error = GetErrorTextForForward(
const auto error = GetErrorTextForSending(
peer,
items,
comment);
@@ -354,11 +354,11 @@ MTPDmessage_ClientFlags NewMessageClientFlags() {
return MTPDmessage_ClientFlag::f_sending;
}
QString GetErrorTextForForward(
QString GetErrorTextForSending(
not_null<PeerData*> peer,
const HistoryItemsList &items,
bool ignoreSlowmodeCountdown) {
return GetErrorTextForForward(peer, items, {}, ignoreSlowmodeCountdown);
return GetErrorTextForSending(peer, items, {}, ignoreSlowmodeCountdown);
}
struct HistoryMessage::CreateConfig {