diff --git a/td/telegram/MessagesManager.cpp b/td/telegram/MessagesManager.cpp index 5d4d03ec3..36908b435 100644 --- a/td/telegram/MessagesManager.cpp +++ b/td/telegram/MessagesManager.cpp @@ -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 {