mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 09:27:39 +00:00
fix(slack): gate interactive system events by sender auth
This commit is contained in:
@@ -18,6 +18,7 @@ describe("parseSlackModalPrivateMetadata", () => {
|
||||
sessionKey: "agent:main:slack:channel:C1",
|
||||
channelId: "D123",
|
||||
channelType: "im",
|
||||
userId: "U123",
|
||||
ignored: "x",
|
||||
}),
|
||||
),
|
||||
@@ -25,6 +26,7 @@ describe("parseSlackModalPrivateMetadata", () => {
|
||||
sessionKey: "agent:main:slack:channel:C1",
|
||||
channelId: "D123",
|
||||
channelType: "im",
|
||||
userId: "U123",
|
||||
});
|
||||
});
|
||||
});
|
||||
@@ -37,11 +39,13 @@ describe("encodeSlackModalPrivateMetadata", () => {
|
||||
sessionKey: "agent:main:slack:channel:C1",
|
||||
channelId: "",
|
||||
channelType: "im",
|
||||
userId: "U123",
|
||||
}),
|
||||
),
|
||||
).toEqual({
|
||||
sessionKey: "agent:main:slack:channel:C1",
|
||||
channelType: "im",
|
||||
userId: "U123",
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user