Do not try to load active live locations if there is no message database.
GitOrigin-RevId: 012a87fff20d99e40916a63fa722ea75e2bbf974
This commit is contained in:
parent
e4e1e34cc5
commit
54c816d0ac
@ -16327,6 +16327,10 @@ void MessagesManager::add_active_live_location(FullMessageId full_message_id) {
|
|||||||
|
|
||||||
// TODO add timer for live location expiration
|
// TODO add timer for live location expiration
|
||||||
|
|
||||||
|
if (!G()->parameters().use_message_db) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (are_active_live_location_messages_loaded_) {
|
if (are_active_live_location_messages_loaded_) {
|
||||||
save_active_live_locations();
|
save_active_live_locations();
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user