diff --git a/src/components/Chat/ChatGroup.tsx b/src/components/Chat/ChatGroup.tsx index 7f02588..c41265d 100644 --- a/src/components/Chat/ChatGroup.tsx +++ b/src/components/Chat/ChatGroup.tsx @@ -244,7 +244,7 @@ const [messageSize, setMessageSize] = useState(0) const content = item?.content || item.decryptedData?.content; const sender = item.sender; const newTimestamp = item.timestamp; - const contentState = item?.contentState || item.decryptedData?.contentState; + const contentState = item?.contentState !== undefined ? item?.contentState : item.decryptedData?.contentState; if (!content || typeof content !== "string" || !sender || typeof sender !== "string" || !newTimestamp) { console.warn("Invalid content, sender, or timestamp in reaction data", item); @@ -336,7 +336,7 @@ const [messageSize, setMessageSize] = useState(0) const content = item?.content || item.decryptedData?.content; const sender = item.sender; const newTimestamp = item.timestamp; - const contentState = item?.contentState || item.decryptedData?.contentState; + const contentState = item?.contentState !== undefined ? item?.contentState : item.decryptedData?.contentState; if (!content || typeof content !== "string" || !sender || typeof sender !== "string" || !newTimestamp) { console.warn("Invalid content, sender, or timestamp in reaction data", item); @@ -771,7 +771,7 @@ const clearEditorContent = () => { setIsSending(false) resumeAllQueues() } - }, []) + }, [isPrivate]) const openQManager = useCallback(()=> { setIsOpenQManager(true)