mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-07 23:53:58 +02:00
Skip deleted users in voice chat invites.
This commit is contained in:
parent
df666ff724
commit
b27d314fa7
1 changed files with 4 additions and 1 deletions
|
@ -319,7 +319,10 @@ bool InviteController::isAlreadyIn(not_null<UserData*> user) const {
|
||||||
std::unique_ptr<PeerListRow> InviteController::createRow(
|
std::unique_ptr<PeerListRow> InviteController::createRow(
|
||||||
not_null<PeerData*> participant) const {
|
not_null<PeerData*> participant) const {
|
||||||
const auto user = participant->asUser();
|
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;
|
return nullptr;
|
||||||
}
|
}
|
||||||
auto result = std::make_unique<PeerListRow>(user);
|
auto result = std::make_unique<PeerListRow>(user);
|
||||||
|
|
Loading…
Add table
Reference in a new issue