Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Commit

Permalink
fix: final channel bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
hirbod committed Sep 28, 2023
1 parent b0a5937 commit be7de57
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export const ImagePreview = memo(

return (
<LeanView
tw="overflow-hidden rounded-xl bg-gray-600"
tw="web:cursor-pointer overflow-hidden rounded-xl bg-gray-600"
style={{
width: imageAttachmentWidth,
height: imageAttachmentHeight,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -443,22 +443,17 @@ export const MessageItem = memo(
duration={item.channel_message.attachments[0]?.duration}
/>
) : null}

<PlatformAnimateHeight
initialHeight={item.reaction_group.length > 0 ? 29 : 0}
>
{item.reaction_group.length > 0 ? (
<AnimatedView layout={Layout}>
<MessageReactions
key={channel_message.id}
reactionGroup={item.reaction_group}
channelId={channelId}
channelReactions={reactions}
messageId={channel_message.id}
/>
</AnimatedView>
) : null}
</PlatformAnimateHeight>
{item.reaction_group.length > 0 ? (
<AnimatedView layout={Layout}>
<MessageReactions
key={channel_message.id}
reactionGroup={item.reaction_group}
channelId={channelId}
channelReactions={reactions}
messageId={channel_message.id}
/>
</AnimatedView>
) : null}
</LeanView>
</LeanView>
</AnimatedView>
Expand Down

0 comments on commit be7de57

Please sign in to comment.