test commit
This commit is contained in:
parent
b48a189604
commit
89a2381a1e
|
@ -36,20 +36,16 @@ const Attachments = React.memo(
|
||||||
|
|
||||||
return attachments.map((file: any, index: number) => {
|
return attachments.map((file: any, index: number) => {
|
||||||
if (file.image_url) {
|
if (file.image_url) {
|
||||||
return (
|
return <Image key={index} file={file} showAttachment={showAttachment} getCustomEmoji={getCustomEmoji} theme={theme} />;
|
||||||
<Image key={file.image_url} file={file} showAttachment={showAttachment} getCustomEmoji={getCustomEmoji} theme={theme} />
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
if (file.audio_url) {
|
if (file.audio_url) {
|
||||||
return <Audio key={file.audio_url} file={file} getCustomEmoji={getCustomEmoji} theme={theme} />;
|
return <Audio key={index} file={file} getCustomEmoji={getCustomEmoji} theme={theme} />;
|
||||||
}
|
}
|
||||||
if (file.video_url) {
|
if (file.video_url) {
|
||||||
return (
|
return <Video key={index} file={file} showAttachment={showAttachment} getCustomEmoji={getCustomEmoji} theme={theme} />;
|
||||||
<Video key={file.video_url} file={file} showAttachment={showAttachment} getCustomEmoji={getCustomEmoji} theme={theme} />
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
if (file.actions && file.actions.length > 0) {
|
if (file.actions && file.actions.length > 0) {
|
||||||
return <AttachedActions attachment={file} theme={theme} />;
|
return <AttachedActions key={index} attachment={file} theme={theme} />;
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
Loading…
Reference in New Issue