Mark a channel hidden based on its needed subscribe power

This commit is contained in:
Wruczek 2020-12-02 19:16:42 +01:00
parent 6fff5900eb
commit fe60bbe7a7
1 changed files with 3 additions and 1 deletions

View File

@ -107,7 +107,9 @@ EOD;
public function renderChannel(TeamSpeakChannel $channel): void {
$hasParent = $channel->getParentId();
$isHidden = in_array($channel->getId(), $this->hiddenChannelIds, true);
$isHidden = in_array($channel->getId(), $this->hiddenChannelIds, true) ||
$channel->getInfo()["channel_needed_subscribe_power"] >= 75;
$channelDisplayName = $channel->getDisplayName();
$channelClasses = $hasParent ? "has-parent" : "no-parent";
$channelIcon = "";