fix: format src/index.ts to pass CI prettier check (#711)
Closes #710 Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -480,11 +480,7 @@ async function main(): Promise<void> {
|
|||||||
const channelOpts = {
|
const channelOpts = {
|
||||||
onMessage: (chatJid: string, msg: NewMessage) => {
|
onMessage: (chatJid: string, msg: NewMessage) => {
|
||||||
// Sender allowlist drop mode: discard messages from denied senders before storing
|
// Sender allowlist drop mode: discard messages from denied senders before storing
|
||||||
if (
|
if (!msg.is_from_me && !msg.is_bot_message && registeredGroups[chatJid]) {
|
||||||
!msg.is_from_me &&
|
|
||||||
!msg.is_bot_message &&
|
|
||||||
registeredGroups[chatJid]
|
|
||||||
) {
|
|
||||||
const cfg = loadSenderAllowlist();
|
const cfg = loadSenderAllowlist();
|
||||||
if (
|
if (
|
||||||
shouldDropMessage(chatJid, cfg) &&
|
shouldDropMessage(chatJid, cfg) &&
|
||||||
|
|||||||
Reference in New Issue
Block a user