This commit is contained in:
Andrea Cavalli 2021-04-04 16:58:56 +02:00
parent eefe39f16f
commit 1928c14a76
2 changed files with 2 additions and 7 deletions

View File

@ -35821,8 +35821,8 @@ void MessagesManager::get_channel_difference_delayed(DialogId dialog_id, int32 p
get_channel_difference(dialog_id,pts, force, "on_get_channel_difference");
} else {
auto channel_difference_id = ++last_pending_channel_difference_;
PendingChannelDifference pendingChannelDifference = {dialog_id, pts, force};
pending_channel_difference_[channel_difference_id] = pendingChannelDifference;
PendingChannelDifference pending_channel_difference = {dialog_id, pts, force};
pending_channel_difference_[channel_difference_id] = pending_channel_difference;
send_closure(G()->td(), &Td::send_update,
make_tl_object<td_api::updateNewChannelDifferencePart>(channel_difference_id));
}

View File

@ -3137,11 +3137,6 @@ class MessagesManager : public Actor {
DialogId dialog_id;
int32 pts;
bool force;
PendingChannelDifference(DialogId dialog_id, int32 pts, bool force)
: dialog_id(dialog_id), pts(pts), force(force) {
}
};
std::unordered_map<int64, PendingChannelDifference> pending_channel_difference_;
int64 last_pending_channel_difference_ = 0;