mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/telegramdesktop/tdesktop
synced 2026-09-20 08:03:45 +08:00
[ttl-media] Forbade saving of timer media.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user