mirror of
https://github.com/Qortal/qortal-mobile.git
synced 2025-05-13 13:17:53 +00:00
fix reaction in public
This commit is contained in:
parent
7f166ea669
commit
14add4f2fc
@ -253,7 +253,7 @@ export const ChatGroup = ({selectedGroup, secretKey, setSecretKey, getSecretKey,
|
|||||||
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);
|
||||||
@ -345,7 +345,7 @@ export const ChatGroup = ({selectedGroup, secretKey, setSecretKey, getSecretKey,
|
|||||||
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);
|
||||||
@ -799,7 +799,7 @@ const sendMessage = async ()=> {
|
|||||||
setIsSending(false)
|
setIsSending(false)
|
||||||
resumeAllQueues()
|
resumeAllQueues()
|
||||||
}
|
}
|
||||||
}, [])
|
}, [isPrivate])
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div style={{
|
<div style={{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user