Mark a channel hidden based on its needed subscribe power
This commit is contained in:
parent
6fff5900eb
commit
fe60bbe7a7
|
@ -107,7 +107,9 @@ EOD;
|
||||||
public function renderChannel(TeamSpeakChannel $channel): void {
|
public function renderChannel(TeamSpeakChannel $channel): void {
|
||||||
$hasParent = $channel->getParentId();
|
$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();
|
$channelDisplayName = $channel->getDisplayName();
|
||||||
$channelClasses = $hasParent ? "has-parent" : "no-parent";
|
$channelClasses = $hasParent ? "has-parent" : "no-parent";
|
||||||
$channelIcon = "";
|
$channelIcon = "";
|
||||||
|
|
Loading…
Reference in New Issue