mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-13 15:47:28 +00:00
fix: mark slack channel system events untrusted
This commit is contained in:
@@ -78,6 +78,10 @@ describe("registerSlackChannelEvents", () => {
|
||||
});
|
||||
|
||||
expect(trackEvent).toHaveBeenCalledTimes(1);
|
||||
expect(enqueueSystemEventMock).toHaveBeenCalledTimes(1);
|
||||
expect(enqueueSystemEventMock).toHaveBeenCalledWith("Slack channel created: #general.", {
|
||||
sessionKey: "agent:main:main",
|
||||
contextKey: "slack:channel:created:C1",
|
||||
trusted: false,
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@@ -46,6 +46,7 @@ export function registerSlackChannelEvents(params: {
|
||||
enqueueSystemEvent(`Slack channel ${params.kind}: ${label}.`, {
|
||||
sessionKey,
|
||||
contextKey: `slack:channel:${params.kind}:${params.channelId ?? params.channelName ?? "unknown"}`,
|
||||
trusted: false,
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user