mirror of
https://github.com/Qortal/Qortal-Hub.git
synced 2025-04-23 19:37:52 +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 content = item?.content || item.decryptedData?.content;
|
||||||
const sender = item.sender;
|
const sender = item.sender;
|
||||||
const newTimestamp = item.timestamp;
|
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) {
|
if (!content || typeof content !== "string" || !sender || typeof sender !== "string" || !newTimestamp) {
|
||||||
console.warn("Invalid content, sender, or timestamp in reaction data", item);
|
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 content = item?.content || item.decryptedData?.content;
|
||||||
const sender = item.sender;
|
const sender = item.sender;
|
||||||
const newTimestamp = item.timestamp;
|
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) {
|
if (!content || typeof content !== "string" || !sender || typeof sender !== "string" || !newTimestamp) {
|
||||||
console.warn("Invalid content, sender, or timestamp in reaction data", item);
|
console.warn("Invalid content, sender, or timestamp in reaction data", item);
|
||||||
@ -771,7 +771,7 @@ const clearEditorContent = () => {
|
|||||||
setIsSending(false)
|
setIsSending(false)
|
||||||
resumeAllQueues()
|
resumeAllQueues()
|
||||||
}
|
}
|
||||||
}, [])
|
}, [isPrivate])
|
||||||
|
|
||||||
const openQManager = useCallback(()=> {
|
const openQManager = useCallback(()=> {
|
||||||
setIsOpenQManager(true)
|
setIsOpenQManager(true)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user