mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-18 15:17:07 +02:00
Removed inaccessible users from choosing recipients for forwards box.
This commit is contained in:
parent
6db7840fa7
commit
bc5aa7338e
1 changed files with 1 additions and 0 deletions
|
@ -533,6 +533,7 @@ auto ChooseRecipientBoxController::createRow(
|
|||
const auto skip = _filter
|
||||
? !_filter(history)
|
||||
: ((peer->isBroadcast() && !peer->canWrite())
|
||||
|| (peer->isUser() && !peer->canWrite())
|
||||
|| peer->isRepliesChat());
|
||||
return skip ? nullptr : std::make_unique<Row>(history);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue