Skip to content

Commit

Permalink
Fixes Icon preview of latest WebXDC displayed when summary is reactio…
Browse files Browse the repository at this point in the history
  • Loading branch information
nojisan committed Aug 2, 2024
1 parent 72a36ef commit b929825
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/renderer/components/chat/ChatListItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ function Message({

const status = wasReceived ? '' : mapCoreMsgStatus2String(summaryStatus)

const iswebxdc = lastMessageType === 'Webxdc'
const iswebxdc = summaryPreviewImage === "webxdc-icon://last-msg-id"

return (
<div className='chat-list-item-message'>
Expand All @@ -101,7 +101,7 @@ function Message({
{summaryText1 + ': '}
</div>
)}
{summaryPreviewImage && (
{summaryPreviewImage && !iswebxdc &&(
<img className='summary_thumbnail' src={summaryPreviewImage} />
)}
{iswebxdc && lastMessageId && (
Expand Down

0 comments on commit b929825

Please sign in to comment.