mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-19 07:37:11 +02:00
Hide history visibility edit for public groups.
This commit is contained in:
parent
b8204a317d
commit
cbbccd0364
1 changed files with 2 additions and 1 deletions
|
@ -814,7 +814,8 @@ object_ptr<Ui::RpWidget> Controller::createHistoryVisibilityEdit() {
|
|||
auto channel = _peer->asChannel();
|
||||
if (!channel
|
||||
|| !channel->canEditPreHistoryHidden()
|
||||
|| !channel->isMegagroup()) {
|
||||
|| !channel->isMegagroup()
|
||||
|| (channel->isPublic() && !channel->canEditUsername())) {
|
||||
return nullptr;
|
||||
}
|
||||
auto result = object_ptr<Ui::SlideWrap<Ui::VerticalLayout>>(
|
||||
|
|
Loading…
Add table
Reference in a new issue