feat: add KAAK context menu to channel tree members

This commit is contained in:
illusia committed 2026-10-11 21:40:14 +08:00
1 parent 3459c8410c
commit 3476d4716a
14 files changed
+48 -14

No files matched your search

+2 -1
View File
@@ -301,7 +301,7 @@ test("trusted channel tree and server switcher widgets require scoped read and c
children: [
{ widget: "voice.server-switcher", part: "server-switcher" },
{ widget: "voice.server-header", part: "server-header" },
{ widget: "voice.channel-tree", part: "channel-tree" },
{ widget: "voice.channel-tree", part: "channel-tree", options: { layout: "server-sidebar", memberActions: true } },
],
};
assert.deepEqual(parseSkinPluginDocument(document).components[0].root.children?.map(({ widget }) => widget), [
@@ -309,6 +309,7 @@ test("trusted channel tree and server switcher widgets require scoped read and c
"voice.server-header",
"voice.channel-tree",
]);
assert.deepEqual(parseSkinPluginDocument(document).components[0].root.children?.[2]?.options, { layout: "server-sidebar", memberActions: true });
for (const missingPermission of [
"session.status.read",