mirror of
https://github.com/Qortal/Qortal-Hub.git
synced 2025-04-20 10:05:56 +00:00
fix reaction in public
This commit is contained in:
parent
8dbf4302d8
commit
3416ef9bca
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user