mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-29 16:58:07 +00:00
fix: allow forwarding expiring videos
This commit is contained in:
@@ -220,7 +220,7 @@ bool isAyuForwardNeeded(const std::vector<not_null<HistoryItem*>> &items) {
|
||||
}
|
||||
|
||||
bool isAyuForwardNeeded(not_null<HistoryItem*> item) {
|
||||
if (item->isDeleted() || item->isAyuNoForwards() || item->unsupportedTTL()) {
|
||||
if (item->isDeleted() || item->isAyuNoForwards() || item->unsupportedTTL() || item->media() && item->media()->ttlSeconds()) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
@@ -1354,7 +1354,7 @@ crl::time MediaFile::ttlSeconds() const {
|
||||
}
|
||||
|
||||
bool MediaFile::allowsForward() const {
|
||||
return !ttlSeconds();
|
||||
return true;
|
||||
}
|
||||
|
||||
bool MediaFile::updateInlineResultMedia(const MTPMessageMedia &media) {
|
||||
|
||||
Reference in New Issue
Block a user