mirror of https://github.com/procxx/kepka.git
Hide history visibility edit for public groups.
This commit is contained in:
parent
b8204a317d
commit
cbbccd0364
|
@ -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…
Reference in New Issue