From eec4d6f3f003e2d5b137b156815e7df6df026f0c Mon Sep 17 00:00:00 2001
From: teodorus-nathaniel
Date: Sat, 19 Aug 2023 19:36:19 +0700
Subject: [PATCH] Fix link preview without image
---
src/components/chats/ChatItem/LinkPreview.tsx | 16 +++++++++-------
1 file changed, 9 insertions(+), 7 deletions(-)
diff --git a/src/components/chats/ChatItem/LinkPreview.tsx b/src/components/chats/ChatItem/LinkPreview.tsx
index 5b2632049..9858e477b 100644
--- a/src/components/chats/ChatItem/LinkPreview.tsx
+++ b/src/components/chats/ChatItem/LinkPreview.tsx
@@ -67,13 +67,15 @@ export default function LinkPreview({
>
{truncatedDesc}
-
+ {linkMetadata.image && (
+
+ )}
{internalLinkText && (