Fix usage of unsupported chat identifier.
This commit is contained in:
parent
60f2f75b78
commit
cd3cc873f0
@ -5461,8 +5461,8 @@ UserId ContactsManager::add_channel_bot_user() {
|
||||
return user_id;
|
||||
}
|
||||
|
||||
ChatId ContactsManager::get_unsupported_chat_id() {
|
||||
return ChatId(static_cast<int64>(G()->is_test_dc() ? 10304875 : 1535424647));
|
||||
ChannelId ContactsManager::get_unsupported_channel_id() {
|
||||
return ChannelId(static_cast<int64>(G()->is_test_dc() ? 10304875 : 1535424647));
|
||||
}
|
||||
|
||||
int32 ContactsManager::get_user_was_online(const User *u, UserId user_id, int32 unix_time) const {
|
||||
|
@ -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<Unit> &&promise);
|
||||
|
||||
|
@ -1627,7 +1627,7 @@ vector<DialogId> 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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user