diff --git a/package/src/components/Attachment/FileAttachmentGroup.tsx b/package/src/components/Attachment/FileAttachmentGroup.tsx index 84374798b3..d89cb934c3 100644 --- a/package/src/components/Attachment/FileAttachmentGroup.tsx +++ b/package/src/components/Attachment/FileAttachmentGroup.tsx @@ -17,7 +17,7 @@ export type FileAttachmentGroupPropsWithContext = Pick { - const { files, message, styles: stylesProp = {} } = props; + const { files, styles: stylesProp = {} } = props; const { Attachment } = useComponentsContext(); const { @@ -32,7 +32,7 @@ const FileAttachmentGroupWithContext = (props: FileAttachmentGroupPropsWithConte {files.map((file, index) => ( diff --git a/package/src/components/Attachment/Gallery.tsx b/package/src/components/Attachment/Gallery.tsx index 5a1b0bd103..b675a24725 100644 --- a/package/src/components/Attachment/Gallery.tsx +++ b/package/src/components/Attachment/Gallery.tsx @@ -272,7 +272,7 @@ const GalleryThumbnail = ({ accessibilityLabel={thumbnailAccessibilityLabel} accessibilityRole='button' disabled={preventPress} - key={`gallery-item-${message.id}/${colIndex}/${rowIndex}/${imagesAndVideos.length}`} + key={`gallery-item-${colIndex}/${rowIndex}`} ref={thumbnailRef} onLongPress={(event) => { if (onLongPress) { diff --git a/package/src/components/Message/MessageItemView/MessageContent.tsx b/package/src/components/Message/MessageItemView/MessageContent.tsx index 716dd4d651..8f699f06ee 100644 --- a/package/src/components/Message/MessageItemView/MessageContent.tsx +++ b/package/src/components/Message/MessageItemView/MessageContent.tsx @@ -281,7 +281,7 @@ const MessageContentWithContext = (props: MessageContentPropsWithContext) => { ); case 'attachments': return otherAttachments.map((attachment, attachmentIndex) => ( - + )); case 'files': return ( @@ -297,7 +297,7 @@ const MessageContentWithContext = (props: MessageContentPropsWithContext) => { const pollId = message.poll_id; const poll = pollId && client.polls.fromState(pollId); return pollId && poll ? ( - + ) : null; } case 'location':