Fix CHECK.

GitOrigin-RevId: 08037c7315fc89e8504dc935848f78e4b1afbe3d
This commit is contained in:
levlam 2018-07-07 17:07:16 +03:00
parent 145c55ad12
commit 05aab44742

View File

@ -9741,8 +9741,11 @@ void MessagesManager::on_message_ttl_expired_impl(Dialog *d, Message *message) {
case MessageVideo::ID:
message->content = make_unique<MessageExpiredVideo>();
break;
case MessageUnsupported::ID:
// can happen if message content file id is broken
break;
default:
CHECK(false) << d->dialog_id << " " << message->ttl << " " << message->content->get_id();
UNREACHABLE();
}
message->ttl = 0;
message->ttl_expires_at = 0;