mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-13 18:21:27 +00:00
fix: guard normalized allowlist sender lookup
This commit is contained in:
@@ -71,7 +71,7 @@ export function isNormalizedSenderAllowed(params: {
|
||||
return true;
|
||||
}
|
||||
const sender = normalizeOptionalLowercaseString(String(params.senderId));
|
||||
return normalizedAllow.includes(sender);
|
||||
return sender ? normalizedAllow.includes(sender) : false;
|
||||
}
|
||||
|
||||
type ParsedChatAllowTarget =
|
||||
|
||||
Reference in New Issue
Block a user