Skip to content

Commit

Permalink
also render origin
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriellsh committed Jun 6, 2022
1 parent 605d570 commit 5d3f63c
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,13 @@ export const ThreadMessagePreview: FC<{ message: IThreadMessage; sequential: boo
<ThreadMessageIconThread />
</ThreadMessageLeftContainer>
<ThreadMessageContainer>
<ThreadMessageOrigin>{parentMessage.phase === AsyncStatePhase.RESOLVED ? body : <Skeleton />}</ThreadMessageOrigin>
<ThreadMessageOrigin>
{parentMessage.phase === AsyncStatePhase.RESOLVED ? (
<ThreadMessagePreviewBody message={{ ...parentMessage.value, msg: body }} />
) : (
<Skeleton />
)}
</ThreadMessageOrigin>
<ThreadMessageUnfollow />
</ThreadMessageContainer>
</ThreadMessageRow>
Expand Down

0 comments on commit 5d3f63c

Please sign in to comment.