From 5c340b99f2fc263fdcd12a749a75bc8f389798cc Mon Sep 17 00:00:00 2001 From: PhilReact Date: Tue, 3 Dec 2024 13:00:59 +0200 Subject: [PATCH] hide chat options and editor if no secretKey --- src/components/Chat/ChatGroup.tsx | 8 +++++--- src/components/Chat/ChatList.tsx | 5 +++-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/components/Chat/ChatGroup.tsx b/src/components/Chat/ChatGroup.tsx index f5039c0..4ff4f94 100644 --- a/src/components/Chat/ChatGroup.tsx +++ b/src/components/Chat/ChatGroup.tsx @@ -746,9 +746,9 @@ const clearEditorContent = () => { left: hide && '-100000px', }}> - + - + {!!secretKey && (
{ )} - + +
{messageSize > 750 && ( { {/* */} + )} {isOpenQManager !== null && ( { const parentRef = useRef(); const [messages, setMessages] = useState(initialMessages); @@ -406,7 +407,7 @@ export const ChatList = ({ )} - {enableMentions && ( + {enableMentions && hasSecretKey && (