mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 12:19:41 +00:00
Fix attachment key in AttachmentList
This commit is contained in:
@@ -99,7 +99,12 @@ export function AttachmentList<
|
||||
const url = getUrl(attachment);
|
||||
const forUI = attachmentsForUI[index];
|
||||
|
||||
const key = url || attachment.path || attachment.fileName || index;
|
||||
const key =
|
||||
attachment.clientUuid ||
|
||||
url ||
|
||||
attachment.path ||
|
||||
attachment.fileName ||
|
||||
index;
|
||||
|
||||
const isImage = isImageAttachment(attachment);
|
||||
const isVideo = isVideoAttachment(attachment);
|
||||
|
||||
Reference in New Issue
Block a user