From 4f8844d6d5fc64bcecd7eacaf11fe57876a002a6 Mon Sep 17 00:00:00 2001 From: levlam Date: Tue, 20 Dec 2022 11:27:38 +0300 Subject: [PATCH] Unify parameter order. --- td/telegram/ContactsManager.cpp | 8 ++++---- td/telegram/ContactsManager.h | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/td/telegram/ContactsManager.cpp b/td/telegram/ContactsManager.cpp index c2c4d1c5a..59ad1ecf5 100644 --- a/td/telegram/ContactsManager.cpp +++ b/td/telegram/ContactsManager.cpp @@ -11547,7 +11547,7 @@ void ContactsManager::update_channel_full(ChannelFull *channel_full, ChannelId c send_closure( G()->td(), &Td::send_update, make_tl_object(get_supergroup_id_object(channel_id, "update_channel_full"), - get_supergroup_full_info_object(channel_full, channel_id))); + get_supergroup_full_info_object(channel_id, channel_full))); channel_full->need_send_update = false; } if (channel_full->need_save_to_database) { @@ -17773,11 +17773,11 @@ tl_object_ptr ContactsManager::get_supergroup_object(Channel } tl_object_ptr ContactsManager::get_supergroup_full_info_object(ChannelId channel_id) const { - return get_supergroup_full_info_object(get_channel_full(channel_id), channel_id); + return get_supergroup_full_info_object(channel_id, get_channel_full(channel_id)); } tl_object_ptr ContactsManager::get_supergroup_full_info_object( - const ChannelFull *channel_full, ChannelId channel_id) const { + ChannelId channel_id, const ChannelFull *channel_full) const { CHECK(channel_full != nullptr); double slow_mode_delay_expires_in = 0; if (channel_full->slow_mode_next_send_date != 0) { @@ -18022,7 +18022,7 @@ void ContactsManager::get_current_state(vector &channel_full) { updates.push_back(td_api::make_object( - channel_id.get(), get_supergroup_full_info_object(channel_full.get(), channel_id))); + channel_id.get(), get_supergroup_full_info_object(channel_id, channel_full.get()))); }); chats_full_.foreach([&](const ChatId &chat_id, const unique_ptr &chat_full) { updates.push_back(td_api::make_object( diff --git a/td/telegram/ContactsManager.h b/td/telegram/ContactsManager.h index 0ad8c8c9a..9299b21e8 100644 --- a/td/telegram/ContactsManager.h +++ b/td/telegram/ContactsManager.h @@ -1662,8 +1662,8 @@ class ContactsManager final : public Actor { static tl_object_ptr get_supergroup_object(ChannelId channel_id, const Channel *c); - tl_object_ptr get_supergroup_full_info_object(const ChannelFull *channel_full, - ChannelId channel_id) const; + tl_object_ptr get_supergroup_full_info_object(ChannelId channel_id, + const ChannelFull *channel_full) const; static tl_object_ptr get_secret_chat_state_object(SecretChatState state);