diff --git a/src/api/ChatButtons.tsx b/src/api/ChatButtons.tsx index 3cef250b3..84cca227f 100644 --- a/src/api/ChatButtons.tsx +++ b/src/api/ChatButtons.tsx @@ -80,6 +80,8 @@ const buttonFactories = new Map(); const logger = new Logger("ChatButtons"); export function _injectButtons(buttons: ReactNode[], props: ChatBarProps) { + if (props.disabled) return; + for (const [key, makeButton] of buttonFactories) { try { const res = makeButton(props, props.type.analyticsName === "normal");