mirror of
https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
synced 2026-12-03 03:52:50 +08:00
feat(skins): refine KAAK voice channel chat
This commit is contained in:
1 parent
7b31c9106a
commit
f6ef471960
13 files changed
+300
-333
No files matched your search
@@ -50,6 +50,24 @@ test("runtime context redacts connection targets from quick-list labels and drop
|
||||
assert.equal(JSON.stringify(projected).includes("2001:db8::1"), false);
|
||||
});
|
||||
|
||||
test("profile-picture display permission does not expose image data to declarative or Wasm contexts", () => {
|
||||
const context = {
|
||||
session: {
|
||||
members: [{ id: "member-1", name: "Visible member", channelId: "channel-1", status: "online", speaking: false, self: false, avatar: "data:image/png;base64,cHJpdmF0ZQ==" }],
|
||||
},
|
||||
};
|
||||
const displayOnly = projectSkinRuntimePluginContext(["session.memberAvatars.read"], context);
|
||||
assert.deepEqual(JSON.parse(JSON.stringify(displayOnly)), {});
|
||||
|
||||
const readableMembers = projectSkinRuntimePluginContext(["session.members.read", "session.memberAvatars.read"], context);
|
||||
assert.deepEqual(JSON.parse(JSON.stringify(readableMembers)), {
|
||||
session: {
|
||||
members: [{ id: "member-1", name: "Visible member", channelId: "channel-1", status: "online", speaking: false, self: false }],
|
||||
},
|
||||
});
|
||||
assert.equal(JSON.stringify(readableMembers).includes("data:image"), false);
|
||||
});
|
||||
|
||||
test("large runtime context is capped across separately bounded collections", () => {
|
||||
const projected = projectSkinRuntimePluginContext(["session.channels.read", "chat.channel.read"], {
|
||||
session: {
|
||||
|
||||
Reference in new issue
Block a user