mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-07-27 07:52:57 +02:00
fix: ttl messages destroying
This commit is contained in:
parent
dc33accae7
commit
20976ac9f9
3 changed files with 8 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue