mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-02-20 23:27:23 +00:00
Only admin can unlink channel from the group.
This commit is contained in:
parent
65a36e49bd
commit
a49806bf79
@ -778,7 +778,9 @@ void Controller::fillManageSection() {
|
||||
? false
|
||||
: channel->isBroadcast()
|
||||
? channel->canEditInformation()
|
||||
: (channel->linkedChat() && channel->canPinMessages());
|
||||
: (channel->linkedChat()
|
||||
&& channel->canPinMessages()
|
||||
&& channel->adminRights() != 0);
|
||||
}();
|
||||
|
||||
AddSkip(_controls.buttonsLayout, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user