mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-16 07:33:46 -06:00
fix: satisfy strict Buzz mention resolution
This commit is contained in:
@@ -235,6 +235,9 @@ export function resolveBuzzMessageMentions(params: {
|
||||
);
|
||||
}
|
||||
const publicKey = matches[0];
|
||||
if (!publicKey) {
|
||||
throw new Error("Buzz mention resolution lost its unique room member");
|
||||
}
|
||||
if (publicKey !== senderPublicKey && !mentions.includes(publicKey)) {
|
||||
if (mentions.length >= BUZZ_MENTION_MAX_COUNT) {
|
||||
throw new Error(`Buzz messages support at most ${BUZZ_MENTION_MAX_COUNT} mentions`);
|
||||
|
||||
Reference in New Issue
Block a user