mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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();
|
auto channel = _peer->asChannel();
|
||||||
if (!channel
|
if (!channel
|
||||||
|| !channel->canEditPreHistoryHidden()
|
|| !channel->canEditPreHistoryHidden()
|
||||||
|| !channel->isMegagroup()) {
|
|| !channel->isMegagroup()
|
||||||
|
|| (channel->isPublic() && !channel->canEditUsername())) {
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
auto result = object_ptr<Ui::SlideWrap<Ui::VerticalLayout>>(
|
auto result = object_ptr<Ui::SlideWrap<Ui::VerticalLayout>>(
|
||||||
|
|
Loading…
Add table
Reference in a new issue