diff --git a/td/telegram/ContactsManager.cpp b/td/telegram/ContactsManager.cpp index f240bf742..719f0e3d5 100644 --- a/td/telegram/ContactsManager.cpp +++ b/td/telegram/ContactsManager.cpp @@ -5461,8 +5461,8 @@ UserId ContactsManager::add_channel_bot_user() { return user_id; } -ChatId ContactsManager::get_unsupported_chat_id() { - return ChatId(static_cast(G()->is_test_dc() ? 10304875 : 1535424647)); +ChannelId ContactsManager::get_unsupported_channel_id() { + return ChannelId(static_cast(G()->is_test_dc() ? 10304875 : 1535424647)); } int32 ContactsManager::get_user_was_online(const User *u, UserId user_id, int32 unix_time) const { diff --git a/td/telegram/ContactsManager.h b/td/telegram/ContactsManager.h index 482b3ef0b..3f0569954 100644 --- a/td/telegram/ContactsManager.h +++ b/td/telegram/ContactsManager.h @@ -335,7 +335,7 @@ class ContactsManager final : public Actor { UserId add_channel_bot_user(); - static ChatId get_unsupported_chat_id(); + static ChannelId get_unsupported_channel_id(); void on_update_username_is_active(UserId user_id, string &&username, bool is_active, Promise &&promise); diff --git a/td/telegram/UpdatesManager.cpp b/td/telegram/UpdatesManager.cpp index 36e69643c..997398fe5 100644 --- a/td/telegram/UpdatesManager.cpp +++ b/td/telegram/UpdatesManager.cpp @@ -1627,7 +1627,7 @@ vector UpdatesManager::get_chat_dialog_ids(const telegram_api::Updates } } if (dialog_ids.size() > 1) { - td::remove(dialog_ids, DialogId(ContactsManager::get_unsupported_chat_id())); + td::remove(dialog_ids, DialogId(ContactsManager::get_unsupported_channel_id())); } return dialog_ids; }