Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions package/src/components/Message/Message.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ const MessageWithContext = <
const {
theme: {
colors: { targetedMessageBackground },
messageSimple: { targetedMessageContainer, unreadUnderlayColor },
messageSimple: { targetedMessageContainer, unreadUnderlayColor, wrapper },
screenPadding,
},
} = useTheme();
Expand Down Expand Up @@ -737,8 +737,12 @@ const MessageWithContext = <
<View
style={[
{ marginTop: 2, paddingHorizontal: screenPadding },
wrapper,
(isTargetedMessage || message.pinned) && !isMessageTypeDeleted
? { backgroundColor: targetedMessageBackground, ...targetedMessageContainer }
? {
backgroundColor: targetedMessageBackground,
...targetedMessageContainer,
}
: {},
]}
testID='message-wrapper'
Expand Down
2 changes: 2 additions & 0 deletions package/src/contexts/themeContext/utils/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -674,6 +674,7 @@ export type Theme = {
roundedView: ViewStyle;
};
unreadUnderlayColor?: ColorValue;
wrapper: ViewStyle;
};
poll: {
allOptions: {
Expand Down Expand Up @@ -1466,6 +1467,7 @@ export const defaultTheme: Theme = {
container: {},
roundedView: {},
},
wrapper: {},
},
poll: {
allOptions: {
Expand Down
Loading