mirror of
https://github.com/Qortal/Qortal-Hub.git
synced 2025-07-30 13:41:45 +00:00
fix chat edits with image
This commit is contained in:
@@ -289,31 +289,18 @@ export const ChatList = ({
|
||||
reactions =
|
||||
chatReferences[message.signature]?.reactions || null;
|
||||
|
||||
if (
|
||||
chatReferences[message.signature]?.edit?.message &&
|
||||
message?.text
|
||||
) {
|
||||
if (chatReferences[message.signature]?.edit) {
|
||||
message.text =
|
||||
chatReferences[message.signature]?.edit?.message;
|
||||
message.isEdit = true;
|
||||
message.editTimestamp =
|
||||
chatReferences[message.signature]?.edit?.timestamp;
|
||||
}
|
||||
if (
|
||||
chatReferences[message.signature]?.edit?.messageText &&
|
||||
message?.messageText
|
||||
) {
|
||||
message.messageText =
|
||||
chatReferences[message.signature]?.edit?.messageText;
|
||||
message.images =
|
||||
chatReferences[message.signature]?.edit?.images;
|
||||
|
||||
message.isEdit = true;
|
||||
message.editTimestamp =
|
||||
chatReferences[message.signature]?.edit?.timestamp;
|
||||
}
|
||||
if (chatReferences[message.signature]?.edit?.images) {
|
||||
message.images =
|
||||
chatReferences[message.signature]?.edit?.images;
|
||||
message.isEdit = true;
|
||||
}
|
||||
}
|
||||
|
||||
// Check if message is updating
|
||||
|
Reference in New Issue
Block a user