mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-22 02:07:24 +00:00
Fix crash in marking message contents read.
This commit is contained in:
parent
28c502bd85
commit
810f7949f4
@ -2109,7 +2109,7 @@ void HistoryItem::contributeToSlowmode(TimeId realDate) {
|
|||||||
|
|
||||||
void HistoryItem::clearMediaAsExpired() {
|
void HistoryItem::clearMediaAsExpired() {
|
||||||
const auto media = this->media();
|
const auto media = this->media();
|
||||||
if (!media->ttlSeconds()) {
|
if (!media || !media->ttlSeconds()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (const auto document = media->document()) {
|
if (const auto document = media->document()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user