From 54c816d0ac70f3dac47ff5e27d5eaf26eca88b89 Mon Sep 17 00:00:00 2001 From: levlam Date: Tue, 31 Dec 2019 04:31:10 +0300 Subject: [PATCH] Do not try to load active live locations if there is no message database. GitOrigin-RevId: 012a87fff20d99e40916a63fa722ea75e2bbf974 --- td/telegram/MessagesManager.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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 {