Skip to content

Commit

Permalink
fix: message list empty state rerender null issue
Browse files Browse the repository at this point in the history
  • Loading branch information
khushal87 committed Aug 5, 2024
1 parent a95a907 commit 65447fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package/src/components/MessageList/MessageList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1102,7 +1102,7 @@ const MessageListWithContext = <
{/* 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' />
{EmptyStateIndicator ? <EmptyStateIndicator listType='message' /> : null}
</View>
) : (
<FlatList
Expand Down

0 comments on commit 65447fe

Please sign in to comment.