Remove CallManager::Update typedef.
This commit is contained in:
parent
9413360255
commit
5d7c69d0d1
@ -20,7 +20,7 @@ namespace td {
|
||||
CallManager::CallManager(ActorShared<> parent) : parent_(std::move(parent)) {
|
||||
}
|
||||
|
||||
void CallManager::update_call(Update call) {
|
||||
void CallManager::update_call(telegram_api::object_ptr<telegram_api::updatePhoneCall> call) {
|
||||
auto call_id = [phone_call = call->phone_call_.get()] {
|
||||
switch (phone_call->get_id()) {
|
||||
case telegram_api::phoneCallEmpty::ID:
|
||||
@ -49,7 +49,7 @@ void CallManager::update_call(Update call) {
|
||||
}
|
||||
|
||||
if (!info.call_id.is_valid()) {
|
||||
LOG(INFO) << "Call_id is not valid for " << call_id << ", postpone update " << to_string(call);
|
||||
LOG(INFO) << "Call identifier is not valid for " << call_id << ", postpone update " << to_string(call);
|
||||
info.updates.push_back(std::move(call));
|
||||
return;
|
||||
}
|
||||
|
@ -25,9 +25,10 @@ namespace td {
|
||||
|
||||
class CallManager final : public Actor {
|
||||
public:
|
||||
using Update = telegram_api::object_ptr<telegram_api::updatePhoneCall>;
|
||||
explicit CallManager(ActorShared<> parent);
|
||||
void update_call(Update call);
|
||||
|
||||
void update_call(telegram_api::object_ptr<telegram_api::updatePhoneCall> call);
|
||||
|
||||
void update_call_signaling_data(int64 call_id, string data);
|
||||
|
||||
void create_call(UserId user_id, tl_object_ptr<telegram_api::InputUser> &&input_user, CallProtocol &&protocol,
|
||||
@ -53,7 +54,7 @@ class CallManager final : public Actor {
|
||||
|
||||
struct CallInfo {
|
||||
CallId call_id{0};
|
||||
std::vector<Update> updates;
|
||||
vector<telegram_api::object_ptr<telegram_api::updatePhoneCall>> updates;
|
||||
};
|
||||
std::map<int64, CallInfo> call_info_;
|
||||
int32 next_call_id_{1};
|
||||
|
Loading…
Reference in New Issue
Block a user