Fix discussion group unlinking.

This commit is contained in:
John Preston 2019-05-31 14:07:50 +03:00
parent 7f74084237
commit 9871184953

View File

@ -786,7 +786,7 @@ void Controller::fillManageSection() {
? channel->canEditInformation()
: (channel->linkedChat()
&& channel->canPinMessages()
&& channel->adminRights() != 0
&& (channel->amCreator() || channel->adminRights() != 0)
&& (!channel->hiddenPreHistory()
|| channel->canEditPreHistoryHidden()));
}();