Skip to content

Commit a40facd

Browse files
authored
fix: show parent thread message on navigation through message action if its empty (#2577)
1 parent 87b32c5 commit a40facd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

package/src/components/MessageList/MessageList.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1099,7 +1099,8 @@ const MessageListWithContext = <
10991099
style={[styles.container, { backgroundColor: white_snow }, container]}
11001100
testID='message-flat-list-wrapper'
11011101
>
1102-
{processedMessageList.length === 0 ? (
1102+
{/* Don't show the empty list indicator for Thread messages */}
1103+
{processedMessageList.length === 0 && !thread ? (
11031104
<View style={[styles.flex, { backgroundColor: white_snow }]} testID='empty-state'>
11041105
<EmptyStateIndicator listType='message' />
11051106
</View>

0 commit comments

Comments
 (0)