[ttl-media] Forbade saving of timer media.

This commit is contained in:
23rd
2026-08-12 07:05:29 +03:00
parent f120dd4abc
commit 491e7725df

View File

@@ -3185,6 +3185,8 @@ bool HistoryItem::forbidsForward() const {
bool HistoryItem::forbidsSaving() const {
if (forbidsForward()) {
return true;
} else if (_media && _media->ttlSeconds()) {
return true;
} else if (const auto invoice = _media ? _media->invoice() : nullptr) {
return HasExtendedMedia(*invoice);
}