Do not call get_active_live_location_messages while adding just loaded from database live locations.

GitOrigin-RevId: 078ed7af9e7f31eaf207751b25542c224c851f82
This commit is contained in:
levlam 2020-01-24 01:16:18 +03:00
parent 84ecdac7be
commit 970cbe1c97

View File

@ -16345,7 +16345,7 @@ void MessagesManager::add_active_live_location(FullMessageId full_message_id) {
if (are_active_live_location_messages_loaded_) {
save_active_live_locations();
} else {
} else if (load_active_live_location_messages_queries_.empty()) {
// load active live locations and save after that
get_active_live_location_messages(Auto());
}