Do not warn on deleted users returned as administrators.
GitOrigin-RevId: 8facbb4a76bf489ce59c9e34d98dc49c6112edb6
This commit is contained in:
parent
7b0be02503
commit
a4d89470f2
@ -7583,8 +7583,11 @@ void ContactsManager::on_get_channel_participants_success(
|
|||||||
((filter.is_recent() || filter.is_search()) && !result.back().status.is_member()) ||
|
((filter.is_recent() || filter.is_search()) && !result.back().status.is_member()) ||
|
||||||
(filter.is_restricted() && !result.back().status.is_restricted()) ||
|
(filter.is_restricted() && !result.back().status.is_restricted()) ||
|
||||||
(filter.is_banned() && !result.back().status.is_banned())) {
|
(filter.is_banned() && !result.back().status.is_banned())) {
|
||||||
LOG(ERROR) << "Receive " << result.back() << ", while searching for " << filter << " in " << channel_id
|
bool skip_error = filter.is_administrators() && is_user_deleted(result.back().user_id);
|
||||||
<< " with offset " << offset << " and limit " << limit;
|
if (!skip_error) {
|
||||||
|
LOG(ERROR) << "Receive " << result.back() << ", while searching for " << filter << " in " << channel_id
|
||||||
|
<< " with offset " << offset << " and limit " << limit;
|
||||||
|
}
|
||||||
result.pop_back();
|
result.pop_back();
|
||||||
total_count--;
|
total_count--;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user