Skip to content

Commit

Permalink
fix: show parent thread message on navigation through message action …
Browse files Browse the repository at this point in the history
…if its empty (#2577)
  • Loading branch information
khushal87 authored Jul 2, 2024
1 parent 87b32c5 commit a40facd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package/src/components/MessageList/MessageList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1099,7 +1099,8 @@ const MessageListWithContext = <
style={[styles.container, { backgroundColor: white_snow }, container]}
testID='message-flat-list-wrapper'
>
{processedMessageList.length === 0 ? (
{/* Don't show the empty list indicator for Thread messages */}
{processedMessageList.length === 0 && !thread ? (
<View style={[styles.flex, { backgroundColor: white_snow }]} testID='empty-state'>
<EmptyStateIndicator listType='message' />
</View>
Expand Down

0 comments on commit a40facd

Please sign in to comment.