Skip deleted users in voice chat invites.

This commit is contained in:
John Preston 2021-05-27 22:46:20 +04:00
parent df666ff724
commit b27d314fa7
1 changed files with 4 additions and 1 deletions

View File

@ -319,7 +319,10 @@ bool InviteController::isAlreadyIn(not_null<UserData*> user) const {
std::unique_ptr<PeerListRow> InviteController::createRow(
not_null<PeerData*> participant) const {
const auto user = participant->asUser();
if (!user || user->isSelf() || user->isBot()) {
if (!user
|| user->isSelf()
|| user->isBot()
|| (user->flags() & MTPDuser::Flag::f_deleted)) {
return nullptr;
}
auto result = std::make_unique<PeerListRow>(user);