From 04e9aa1e9643d9947c7a3a1b55bc71ca33795b2e Mon Sep 17 00:00:00 2001 From: tjtanjin Date: Fri, 2 Aug 2024 00:21:18 +0800 Subject: [PATCH] fix: Fix an issue where global disabling of chat cannot be overriden --- src/services/BlockService/ChatDisabledProcessor.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/BlockService/ChatDisabledProcessor.tsx b/src/services/BlockService/ChatDisabledProcessor.tsx index d9b19ed3..e5dcff95 100644 --- a/src/services/BlockService/ChatDisabledProcessor.tsx +++ b/src/services/BlockService/ChatDisabledProcessor.tsx @@ -12,7 +12,7 @@ export const processChatDisabled = async (block: Block, setTextAreaDisabled: (in params: Params) => { const chatDisabled = block.chatDisabled; - if (!chatDisabled) { + if (chatDisabled == null) { return; }