2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Update API scheme on layer 142: Premium stickers.

This commit is contained in:
John Preston
2022-04-21 15:06:50 +04:00
parent c3386fba52
commit 5874ae7c51
18 changed files with 85 additions and 16 deletions

View File

@@ -6680,9 +6680,10 @@ bool HistoryWidget::sendExistingDocument(
Ui::MakeInformBox(*error),
Ui::LayerOption::KeepOther);
return false;
} else if (!_peer || !_peer->canWrite()) {
return false;
} else if (showSlowmodeError()) {
} else if (!_peer
|| !_peer->canWrite()
|| showSlowmodeError()
|| ShowSendPremiumError(controller(), document)) {
return false;
}