Don't allow sharing public groups with requests in folders.
This commit is contained in:
parent
312aa4b130
commit
63960c647b
|
@ -89,7 +89,8 @@ struct Errors {
|
||||||
}
|
}
|
||||||
return std::nullopt;
|
return std::nullopt;
|
||||||
} else if (const auto channel = history->peer->asChannel()) {
|
} else if (const auto channel = history->peer->asChannel()) {
|
||||||
if (!channel->canHaveInviteLink() && !channel->hasUsername()) {
|
if (!channel->canHaveInviteLink()
|
||||||
|
&& (!channel->hasUsername() || channel->requestToJoin())) {
|
||||||
return result(
|
return result(
|
||||||
tr::lng_filters_link_noadmin_status(tr::now),
|
tr::lng_filters_link_noadmin_status(tr::now),
|
||||||
(channel->isMegagroup()
|
(channel->isMegagroup()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user