From fabb80b3cdbad17c38d4eb38503223472032bb5c Mon Sep 17 00:00:00 2001 From: levlam Date: Mon, 12 Aug 2024 21:38:21 +0300 Subject: [PATCH] Don't try to load active live locations for bots. --- td/telegram/MessagesManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/td/telegram/MessagesManager.cpp b/td/telegram/MessagesManager.cpp index 3c764f15e..87cd0f155 100644 --- a/td/telegram/MessagesManager.cpp +++ b/td/telegram/MessagesManager.cpp @@ -20938,7 +20938,7 @@ void MessagesManager::search_dialog_recent_location_messages(DialogId dialog_id, } void MessagesManager::load_active_live_location_messages(Promise &&promise) { - if (!G()->use_message_database()) { + if (!G()->use_message_database() || td_->auth_manager_->is_bot()) { are_active_live_location_messages_loaded_ = true; } if (are_active_live_location_messages_loaded_) {