Fix crash in marking message contents read.

Esse commit está contido em:
John Preston
2025-04-22 16:52:59 +04:00
commit 810f7949f4
+1 -1
Ver Arquivo
@@ -2109,7 +2109,7 @@ void HistoryItem::contributeToSlowmode(TimeId realDate) {
void HistoryItem::clearMediaAsExpired() {
const auto media = this->media();
if (!media->ttlSeconds()) {
if (!media || !media->ttlSeconds()) {
return;
}
if (const auto document = media->document()) {