mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 22:25:12 +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(
|
||||
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);
|
||||
|
Reference in New Issue
Block a user