From 33de10f288694fb0de7201b339686d88e786d59a Mon Sep 17 00:00:00 2001 From: levlam Date: Tue, 25 Dec 2018 06:07:29 +0300 Subject: [PATCH] Add CHECK for correct init order. GitOrigin-RevId: 488c507c51f42c9e40a09e553134c96aa5b794b5 --- td/telegram/MessagesManager.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/td/telegram/MessagesManager.cpp b/td/telegram/MessagesManager.cpp index 1ae3a9ba8..f7f813fd6 100644 --- a/td/telegram/MessagesManager.cpp +++ b/td/telegram/MessagesManager.cpp @@ -17858,6 +17858,7 @@ vector MessagesManager::get_message_notification_group_key if (!G()->parameters().use_message_db) { return {}; } + CHECK(start_time_ != 0); // ensure that MessagesManager was already inited in start_up VLOG(notifications) << "Trying to load " << limit << " message notification groups from database from " << from_group_key;