mirror of
https://github.com/vale981/tdesktop
synced 2025-03-06 02:01:40 -05:00
Only admin can unlink channel from the group.
This commit is contained in:
parent
65a36e49bd
commit
a49806bf79
1 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue