Do not try to load active live locations if there is no message database.

GitOrigin-RevId: 012a87fff20d99e40916a63fa722ea75e2bbf974
This commit is contained in:
levlam 2019-12-31 04:31:10 +03:00
parent e4e1e34cc5
commit 54c816d0ac

View File

@ -16327,6 +16327,10 @@ void MessagesManager::add_active_live_location(FullMessageId full_message_id) {
// TODO add timer for live location expiration
if (!G()->parameters().use_message_db) {
return;
}
if (are_active_live_location_messages_loaded_) {
save_active_live_locations();
} else {