File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
package/src/components/MessageList Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -670,33 +670,36 @@ const MessageListWithContext = <
670
670
threadList = { threadList }
671
671
/>
672
672
) ;
673
+
673
674
return wrapMessageInTheme ? (
674
675
< >
675
676
< ThemeProvider mergedStyle = { modifiedTheme } >
676
677
< View
677
678
style = { [ shouldApplyAndroidWorkaround ? styles . invertAndroid : undefined ] }
678
679
testID = { `message-list-item-${ index } ` }
679
680
>
681
+ { shouldApplyAndroidWorkaround && insertInlineUnreadIndicator && (
682
+ < InlineUnreadIndicator />
683
+ ) }
680
684
{ shouldApplyAndroidWorkaround && renderDateSeperator }
681
685
{ renderMessage }
682
686
</ View >
683
687
</ ThemeProvider >
684
688
{ ! shouldApplyAndroidWorkaround && renderDateSeperator }
685
- { /* Adding indicator below the messages, since the list is inverted */ }
686
- { insertInlineUnreadIndicator && < InlineUnreadIndicator /> }
689
+ { ! shouldApplyAndroidWorkaround && insertInlineUnreadIndicator && < InlineUnreadIndicator /> }
687
690
</ >
688
691
) : (
689
692
< >
690
693
< View
691
694
style = { [ shouldApplyAndroidWorkaround ? styles . invertAndroid : undefined ] }
692
695
testID = { `message-list-item-${ index } ` }
693
696
>
697
+ { shouldApplyAndroidWorkaround && insertInlineUnreadIndicator && < InlineUnreadIndicator /> }
694
698
{ shouldApplyAndroidWorkaround && renderDateSeperator }
695
699
{ renderMessage }
696
700
</ View >
697
701
{ ! shouldApplyAndroidWorkaround && renderDateSeperator }
698
- { /* Adding indicator below the messages, since the list is inverted */ }
699
- { insertInlineUnreadIndicator && < InlineUnreadIndicator /> }
702
+ { ! shouldApplyAndroidWorkaround && insertInlineUnreadIndicator && < InlineUnreadIndicator /> }
700
703
</ >
701
704
) ;
702
705
} ;
You can’t perform that action at this time.
0 commit comments