mirror of
https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
synced 2026-12-03 20:12:52 +08:00
fix: show password protected channels
This commit is contained in:
1 parent
ff508a8eb9
commit
cec2a81549
23 files changed
+189
-27
No files matched your search
@@ -11,6 +11,7 @@ export function mapChannelTree(snapshot: TSDirectorySnapshot, avatarCache = new
|
||||
...(typeof channel.maxClients === "number" && typeof channel.maxClientsLimited === "boolean"
|
||||
? { maxClients: channel.maxClients, maxClientsLimited: channel.maxClientsLimited }
|
||||
: {}),
|
||||
...(typeof channel.passwordProtected === "boolean" ? { passwordProtected: channel.passwordProtected } : {}),
|
||||
members: snapshot.clients
|
||||
.filter((client) => client.channelID === channel.id)
|
||||
.map((client) => {
|
||||
|
||||
Reference in new issue
Block a user