blob: e1d61eb8752a5679e6a0bac10f2d18764f4c5369 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
//
// Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2026
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#include "td/telegram/PeopleNearbyManager.h"
#include "td/telegram/AuthManager.h"
#include "td/telegram/Global.h"
#include "td/telegram/Td.h"
#include "td/telegram/TdDb.h"
namespace td {
PeopleNearbyManager::PeopleNearbyManager(Td *td, ActorShared<> parent) : td_(td), parent_(std::move(parent)) {
if (!td_->auth_manager_->is_bot()) {
G()->td_db()->get_binlog_pmc()->erase("location_visibility_expire_date");
G()->td_db()->get_binlog_pmc()->erase("pending_location_visibility_expire_date");
}
}
void PeopleNearbyManager::tear_down() {
parent_.reset();
}
} // namespace td
|