mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-22 12:01:40 +00:00
fix: guard normalized allowlist sender lookup
This commit is contained in:
parent
768f2fdc47
commit
b374a031ec
1 changed files with 1 additions and 1 deletions
|
|
@ -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 =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue