This commit is contained in:
JoelCooperPhD authored and GitHub committed 2026-01-30 13:20:34 -03:00
commit 53fc2c320f
5 files changed
+61 -28

No files matched your search

+11 -1
View File
@@ -398,7 +398,17 @@ export const googlechatPlugin: ChannelPlugin<ResolvedGoogleChatAccount> = {
),
};
}
return { ok: true, to: normalized };
const hasWildcard = allowListRaw.includes("*");
if (hasWildcard || allowList.length === 0 || allowList.includes(normalized)) {
return { ok: true, to: normalized };
}
if (mode === "implicit" || mode === "heartbeat") {
return { ok: true, to: allowList[0] };
}
return {
ok: false,
error: new Error(`Google Chat target ${trimmed} is not in the allowFrom list.`),
};
}
if (allowList.length > 0) {