Remove MessagesManager::on_load_active_live_location_messages_finished.
This commit is contained in:
parent
f5e0989f9e
commit
12e23e68bf
@ -20956,10 +20956,11 @@ void MessagesManager::on_load_active_live_location_message_full_ids_from_databas
|
|||||||
}
|
}
|
||||||
if (value.empty()) {
|
if (value.empty()) {
|
||||||
LOG(INFO) << "Active live location messages aren't found in the database";
|
LOG(INFO) << "Active live location messages aren't found in the database";
|
||||||
|
are_active_live_location_messages_loaded_ = true;
|
||||||
if (!active_live_location_message_full_ids_.empty()) {
|
if (!active_live_location_message_full_ids_.empty()) {
|
||||||
save_active_live_locations();
|
save_active_live_locations();
|
||||||
}
|
}
|
||||||
on_load_active_live_location_messages_finished();
|
set_promises(load_active_live_location_messages_queries_);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -20982,17 +20983,13 @@ void MessagesManager::on_load_active_live_location_message_full_ids_from_databas
|
|||||||
add_active_live_location(message_full_id);
|
add_active_live_location(message_full_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
are_active_live_location_messages_loaded_ = true;
|
||||||
if (new_message_full_ids.size() != active_live_location_message_full_ids_.size()) {
|
if (new_message_full_ids.size() != active_live_location_message_full_ids_.size()) {
|
||||||
send_update_active_live_location_messages();
|
send_update_active_live_location_messages();
|
||||||
}
|
}
|
||||||
if (!new_message_full_ids.empty() || old_message_full_ids.size() != active_live_location_message_full_ids_.size()) {
|
if (!new_message_full_ids.empty() || old_message_full_ids.size() != active_live_location_message_full_ids_.size()) {
|
||||||
save_active_live_locations();
|
save_active_live_locations();
|
||||||
}
|
}
|
||||||
on_load_active_live_location_messages_finished();
|
|
||||||
}
|
|
||||||
|
|
||||||
void MessagesManager::on_load_active_live_location_messages_finished() {
|
|
||||||
are_active_live_location_messages_loaded_ = true;
|
|
||||||
set_promises(load_active_live_location_messages_queries_);
|
set_promises(load_active_live_location_messages_queries_);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -21022,8 +21019,6 @@ bool MessagesManager::add_active_live_location(MessageFullId message_full_id) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
send_update_active_live_location_messages();
|
|
||||||
|
|
||||||
if (G()->use_message_database()) {
|
if (G()->use_message_database()) {
|
||||||
if (are_active_live_location_messages_loaded_) {
|
if (are_active_live_location_messages_loaded_) {
|
||||||
save_active_live_locations();
|
save_active_live_locations();
|
||||||
|
@ -2890,8 +2890,6 @@ class MessagesManager final : public Actor {
|
|||||||
|
|
||||||
void on_load_active_live_location_message_full_ids_from_database(string value);
|
void on_load_active_live_location_message_full_ids_from_database(string value);
|
||||||
|
|
||||||
void on_load_active_live_location_messages_finished();
|
|
||||||
|
|
||||||
bool try_add_active_live_location(DialogId dialog_id, const Message *m);
|
bool try_add_active_live_location(DialogId dialog_id, const Message *m);
|
||||||
|
|
||||||
bool add_active_live_location(MessageFullId message_full_id);
|
bool add_active_live_location(MessageFullId message_full_id);
|
||||||
|
Loading…
Reference in New Issue
Block a user