diff --git a/td/telegram/MessagesManager.cpp b/td/telegram/MessagesManager.cpp index 97b37fc15..dbba87a29 100644 --- a/td/telegram/MessagesManager.cpp +++ b/td/telegram/MessagesManager.cpp @@ -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(channel_difference_id)); } diff --git a/td/telegram/MessagesManager.h b/td/telegram/MessagesManager.h index 784a4574d..3efa4b0b5 100644 --- a/td/telegram/MessagesManager.h +++ b/td/telegram/MessagesManager.h @@ -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 pending_channel_difference_; int64 last_pending_channel_difference_ = 0;