fix: reply gif

This commit is contained in:
Tristan Yang
2023-07-03 12:08:17 +08:00
parent 4094ebc8a6
commit 0ec8fdafc2
+1 -1
View File
@@ -41,7 +41,7 @@ const renderContent = (data: MessagePayload) => {
const { content_type = "", name, size } = properties || {}; const { content_type = "", name, size } = properties || {};
const icon = getFileIcon(content_type, name, "w-4 h-5"); const icon = getFileIcon(content_type, name, "w-4 h-5");
if (isImage(content_type, size)) { if (isImage(content_type, size)) {
res = <img className="w-10 h-10 object-cover" src={thumbnail} />; res = <img className="w-10 h-10 object-cover" src={thumbnail || (content as string)} />;
} else { } else {
res = ( res = (
<div className="flex gap-1"> <div className="flex gap-1">