Check that content was parsed.

This commit is contained in:
levlam 2021-10-12 22:17:07 +03:00
parent d6502458f5
commit 90fea23dd7

View File

@ -5181,6 +5181,7 @@ void MessagesManager::Message::parse(ParserT &parser) {
parse(max_reply_media_timestamp, parser); parse(max_reply_media_timestamp, parser);
} }
CHECK(content != nullptr);
is_content_secret |= is_content_secret |=
is_secret_message_content(ttl, content->get_type()); // repair is_content_secret for old messages is_secret_message_content(ttl, content->get_type()); // repair is_content_secret for old messages
if (hide_edit_date && content->get_type() == MessageContentType::LiveLocation) { if (hide_edit_date && content->get_type() == MessageContentType::LiveLocation) {