Suggest sending large texts as files.

This commit is contained in:
John Preston
2026-04-10 19:25:51 +07:00
parent 9a9307ead3
commit 05cf8aaa0f
17 changed files with 444 additions and 34 deletions
@@ -285,7 +285,10 @@ void DocumentMedia::checkStickerLarge() {
void DocumentMedia::automaticLoad(
Data::FileOrigin origin,
const HistoryItem *item) {
if (_owner->status != FileReady || loaded() || _owner->cancelled()) {
if (_owner->status != FileReady
|| loaded()
|| _owner->uploading()
|| _owner->cancelled()) {
return;
} else if (!item && !_owner->sticker() && !_owner->isAnimation()) {
return;