fix: show password protected channels

This commit is contained in:
illusia committed 2026-10-12 10:34:06 +08:00
1 parent ff508a8eb9
commit cec2a81549
23 files changed
+189 -27

No files matched your search

+1
View File
@@ -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) => {