mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-03 16:15:13 +00:00
Skip deleted users in voice chat invites.
This commit is contained in:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user