mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-07 15:43:55 +02:00
Fix crash in marking message contents read.
This commit is contained in:
parent
28c502bd85
commit
810f7949f4
1 changed files with 1 additions and 1 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Add table
Reference in a new issue