Skip to content

Commit

Permalink
fix: own message custom theme bug (#2696)
Browse files Browse the repository at this point in the history
  • Loading branch information
isekovanic authored Oct 2, 2024
1 parent b548a71 commit 4e2596b
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 @@ -667,12 +667,12 @@ const MessageListWithContext = <
);
return wrapMessageInTheme ? (
<>
{shouldApplyAndroidWorkaround && renderDateSeperator}
<ThemeProvider mergedStyle={modifiedTheme}>
<View
style={[shouldApplyAndroidWorkaround ? styles.invertAndroid : undefined]}
testID={`message-list-item-${index}`}
>
{shouldApplyAndroidWorkaround && renderDateSeperator}
{renderMessage}
</View>
</ThemeProvider>
Expand Down

0 comments on commit 4e2596b

Please sign in to comment.