style: oxfmt format
This commit is contained in:
@@ -49,7 +49,7 @@ describe("slack prepareSlackMessage inbound contract", () => {
|
||||
mediaMaxBytes: 1024,
|
||||
removeAckAfterReply: false,
|
||||
});
|
||||
slackCtx.resolveUserName = async () => ({ name: "Alice" } as any);
|
||||
slackCtx.resolveUserName = async () => ({ name: "Alice" }) as any;
|
||||
|
||||
const account: ResolvedSlackAccount = {
|
||||
accountId: "default",
|
||||
@@ -78,4 +78,3 @@ describe("slack prepareSlackMessage inbound contract", () => {
|
||||
expectInboundContextContract(prepared!.ctxPayload as any);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
@@ -240,7 +240,12 @@ export async function prepareSlackMessage(params: {
|
||||
: false;
|
||||
const commandAuthorized = ownerAuthorized || channelCommandAuthorized;
|
||||
|
||||
if (allowTextCommands && isRoomish && hasControlCommand(message.text ?? "", cfg) && !commandAuthorized) {
|
||||
if (
|
||||
allowTextCommands &&
|
||||
isRoomish &&
|
||||
hasControlCommand(message.text ?? "", cfg) &&
|
||||
!commandAuthorized
|
||||
) {
|
||||
logVerbose(`Blocked slack control command from unauthorized sender ${senderId}`);
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user