mirror of
https://github.com/Qortal/Qortal-Hub.git
synced 2025-04-23 19:37:52 +00:00
fix showing edited messages
This commit is contained in:
parent
b48dc0081f
commit
b2fbd0f6a5
@ -245,6 +245,7 @@ export const ChatList = ({
|
|||||||
if (chatReferences?.[reply?.signature]?.edit) {
|
if (chatReferences?.[reply?.signature]?.edit) {
|
||||||
reply.decryptedData = chatReferences[reply?.signature]?.edit;
|
reply.decryptedData = chatReferences[reply?.signature]?.edit;
|
||||||
reply.text = chatReferences[reply?.signature]?.edit?.message;
|
reply.text = chatReferences[reply?.signature]?.edit?.message;
|
||||||
|
reply.editTimestamp = chatReferences[reply?.signature]?.edit?.timestamp
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -271,10 +272,12 @@ export const ChatList = ({
|
|||||||
if (chatReferences[message.signature]?.edit?.message && message?.text) {
|
if (chatReferences[message.signature]?.edit?.message && message?.text) {
|
||||||
message.text = chatReferences[message.signature]?.edit?.message;
|
message.text = chatReferences[message.signature]?.edit?.message;
|
||||||
message.isEdit = true
|
message.isEdit = true
|
||||||
|
message.editTimestamp = chatReferences[message.signature]?.edit?.timestamp
|
||||||
}
|
}
|
||||||
if (chatReferences[message.signature]?.edit?.messageText && message?.messageText) {
|
if (chatReferences[message.signature]?.edit?.messageText && message?.messageText) {
|
||||||
message.messageText = chatReferences[message.signature]?.edit?.messageText;
|
message.messageText = chatReferences[message.signature]?.edit?.messageText;
|
||||||
message.isEdit = true
|
message.isEdit = true
|
||||||
|
message.editTimestamp = chatReferences[message.signature]?.edit?.timestamp
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -360,6 +363,7 @@ export const ChatList = ({
|
|||||||
reactions={reactions}
|
reactions={reactions}
|
||||||
isUpdating={isUpdating}
|
isUpdating={isUpdating}
|
||||||
isPrivate={isPrivate}
|
isPrivate={isPrivate}
|
||||||
|
|
||||||
/>
|
/>
|
||||||
</ErrorBoundary>
|
</ErrorBoundary>
|
||||||
</div>
|
</div>
|
||||||
|
@ -102,7 +102,7 @@ const htmlText = useMemo(()=> {
|
|||||||
])
|
])
|
||||||
}
|
}
|
||||||
|
|
||||||
}, [])
|
}, [message?.editTimestamp])
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -118,7 +118,7 @@ const htmlReply = useMemo(()=> {
|
|||||||
])
|
])
|
||||||
}
|
}
|
||||||
|
|
||||||
}, [])
|
}, [reply?.editTimestamp])
|
||||||
|
|
||||||
const userAvatarUrl = useMemo(()=> {
|
const userAvatarUrl = useMemo(()=> {
|
||||||
return message?.senderName ? `${getBaseApiReact()}/arbitrary/THUMBNAIL/${
|
return message?.senderName ? `${getBaseApiReact()}/arbitrary/THUMBNAIL/${
|
||||||
|
Loading…
x
Reference in New Issue
Block a user