mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
fix: ttl messages destroying
This commit is contained in:
@@ -43,7 +43,7 @@ void loadIcons() {
|
||||
}
|
||||
}
|
||||
|
||||
QImage loadPreview(QString name) {
|
||||
QImage loadPreview(const QString& name) {
|
||||
return QImage(qsl(":/gui/art/ayu/%1/app_preview.png").arg(name));
|
||||
}
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ ICON(EXTERA2, "extera2");
|
||||
|
||||
void loadAppIco();
|
||||
|
||||
QImage loadPreview(QString name);
|
||||
QImage loadPreview(const QString& name);
|
||||
|
||||
QString currentAppLogoName();
|
||||
QImage currentAppLogo();
|
||||
|
||||
@@ -2182,6 +2182,12 @@ void HistoryItem::clearMediaAsExpired() {
|
||||
if (!media || !media->ttlSeconds()) {
|
||||
return;
|
||||
}
|
||||
|
||||
const auto& settings = AyuSettings::getInstance();
|
||||
if (settings.saveDeletedMessages) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (const auto document = media->document()) {
|
||||
applyEditionToHistoryCleared();
|
||||
auto text = (document->isVideoFile()
|
||||
|
||||
Reference in New Issue
Block a user