chore: oxfmt
This commit is contained in:
@@ -16,7 +16,9 @@ describe("applyGroupGating", () => {
|
||||
it("treats reply-to-bot as implicit mention", () => {
|
||||
const groupHistories = new Map();
|
||||
const result = applyGroupGating({
|
||||
cfg: baseConfig as unknown as ReturnType<typeof import("../../../config/config.js").loadConfig>,
|
||||
cfg: baseConfig as unknown as ReturnType<
|
||||
typeof import("../../../config/config.js").loadConfig
|
||||
>,
|
||||
msg: {
|
||||
id: "m1",
|
||||
from: "123@g.us",
|
||||
|
||||
@@ -110,7 +110,7 @@ export function applyGroupGating(params: {
|
||||
: null;
|
||||
const implicitMention = Boolean(
|
||||
(selfJid && replySenderJid && selfJid === replySenderJid) ||
|
||||
(selfE164 && replySenderE164 && selfE164 === replySenderE164),
|
||||
(selfE164 && replySenderE164 && selfE164 === replySenderE164),
|
||||
);
|
||||
const mentionGate = resolveMentionGating({
|
||||
requireMention,
|
||||
|
||||
Reference in New Issue
Block a user