From 37ef232d47a4026d463bbbf54b72d7062e94d2d9 Mon Sep 17 00:00:00 2001 From: levlam Date: Tue, 26 Jan 2021 23:15:33 +0300 Subject: [PATCH] Fix function name. --- td/telegram/ContactsManager.cpp | 6 +++--- td/telegram/ContactsManager.h | 4 ++-- td/telegram/cli.cpp | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/td/telegram/ContactsManager.cpp b/td/telegram/ContactsManager.cpp index 723915227..493807ad6 100644 --- a/td/telegram/ContactsManager.cpp +++ b/td/telegram/ContactsManager.cpp @@ -11858,7 +11858,7 @@ void ContactsManager::on_update_channel_full_photo(ChannelFull *channel_full, Ch void ContactsManager::on_update_chat_full_invite_link(ChatFull *chat_full, tl_object_ptr &&invite_link) { CHECK(chat_full != nullptr); - if (update_persistent_invite_link(chat_full->invite_link, std::move(invite_link))) { + if (update_permanent_invite_link(chat_full->invite_link, std::move(invite_link))) { chat_full->is_changed = true; } } @@ -11866,7 +11866,7 @@ void ContactsManager::on_update_chat_full_invite_link(ChatFull *chat_full, void ContactsManager::on_update_channel_full_invite_link( ChannelFull *channel_full, tl_object_ptr &&invite_link) { CHECK(channel_full != nullptr); - if (update_persistent_invite_link(channel_full->invite_link, std::move(invite_link))) { + if (update_permanent_invite_link(channel_full->invite_link, std::move(invite_link))) { channel_full->is_changed = true; } } @@ -12174,7 +12174,7 @@ void ContactsManager::remove_dialog_access_by_invite_link(DialogId dialog_id) { invite_link_info_expire_timeout_.cancel_timeout(dialog_id.get()); } -bool ContactsManager::update_persistent_invite_link( +bool ContactsManager::update_permanent_invite_link( DialogInviteLink &invite_link, tl_object_ptr &&exported_chat_invite) { DialogInviteLink new_invite_link(std::move(exported_chat_invite)); if (new_invite_link != invite_link) { diff --git a/td/telegram/ContactsManager.h b/td/telegram/ContactsManager.h index 3eec07f93..59dbc0397 100644 --- a/td/telegram/ContactsManager.h +++ b/td/telegram/ContactsManager.h @@ -1049,8 +1049,8 @@ class ContactsManager : public Actor { Status can_manage_dialog_invite_links(DialogId dialog_id); - bool update_persistent_invite_link(DialogInviteLink &invite_link, - tl_object_ptr &&exported_chat_invite); + bool update_permanent_invite_link(DialogInviteLink &invite_link, + tl_object_ptr &&exported_chat_invite); const DialogParticipant *get_chat_participant(ChatId chat_id, UserId user_id) const; diff --git a/td/telegram/cli.cpp b/td/telegram/cli.cpp index a6e0d6f5e..1096e1588 100644 --- a/td/telegram/cli.cpp +++ b/td/telegram/cli.cpp @@ -2696,7 +2696,7 @@ class CliClient final : public Actor { } else if (op == "rpcil") { string chat_id = args; send_request(td_api::make_object(as_chat_id(chat_id))); - /* + /* } else if (op == "ccilt") { string chat_id; int32 expire_date;