Try to load needed data from database before rejecting update.
GitOrigin-RevId: 17f0bbb6442b431dee926244d93913f820281379
This commit is contained in:
parent
b447f4e623
commit
fa234d0f36
@ -327,15 +327,15 @@ void UpdatesManager::set_date(int32 date, bool from_update, string date_source)
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool UpdatesManager::is_acceptable_user(UserId user_id) const {
|
bool UpdatesManager::is_acceptable_user(UserId user_id) const {
|
||||||
return td_->contacts_manager_->have_user(user_id);
|
return !td_->contacts_manager_->have_user_force(user_id) || !td_->contacts_manager_->have_user(user_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool UpdatesManager::is_acceptable_chat(ChatId chat_id) const {
|
bool UpdatesManager::is_acceptable_chat(ChatId chat_id) const {
|
||||||
return td_->contacts_manager_->have_chat(chat_id);
|
return td_->contacts_manager_->have_chat_force(chat_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool UpdatesManager::is_acceptable_channel(ChannelId channel_id) const {
|
bool UpdatesManager::is_acceptable_channel(ChannelId channel_id) const {
|
||||||
return td_->contacts_manager_->have_channel(channel_id);
|
return td_->contacts_manager_->have_channel_force(channel_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool UpdatesManager::is_acceptable_dialog(DialogId dialog_id) const {
|
bool UpdatesManager::is_acceptable_dialog(DialogId dialog_id) const {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user