only set ml_sm for groupchats
This commit is contained in:
@@ -437,27 +437,25 @@ let MessageItem = ({
|
|||||||
<Animated.View
|
<Animated.View
|
||||||
accessibilityHint={l`Double tap or long press the message to add a reaction`}
|
accessibilityHint={l`Double tap or long press the message to add a reaction`}
|
||||||
style={[
|
style={[
|
||||||
!isFromSelf && a.ml_sm,
|
!isFromSelf && isGroupChat && a.ml_sm,
|
||||||
...(isOnlyEmoji(message.text)
|
!isOnlyEmoji(message.text) && [
|
||||||
? []
|
a.rounded_xl,
|
||||||
: [
|
a.py_sm,
|
||||||
a.rounded_xl,
|
a.px_md,
|
||||||
a.py_sm,
|
{
|
||||||
a.px_md,
|
marginTop:
|
||||||
{
|
hasEmbedAndText || !isFirstInCluster
|
||||||
marginTop:
|
? CLUSTERED_MESSAGE_GAP
|
||||||
hasEmbedAndText || !isFirstInCluster
|
: 0,
|
||||||
? CLUSTERED_MESSAGE_GAP
|
backgroundColor: isFromSelf
|
||||||
: 0,
|
? isPending
|
||||||
backgroundColor: isFromSelf
|
? pendingColor
|
||||||
? isPending
|
: t.palette.primary_500
|
||||||
? pendingColor
|
: t.palette.contrast_50,
|
||||||
: t.palette.primary_500
|
},
|
||||||
: t.palette.contrast_50,
|
isFromSelf ? a.self_end : a.self_start,
|
||||||
},
|
borderRadiusStyle,
|
||||||
isFromSelf ? a.self_end : a.self_start,
|
],
|
||||||
borderRadiusStyle,
|
|
||||||
]),
|
|
||||||
]}>
|
]}>
|
||||||
<RichText
|
<RichText
|
||||||
value={rt}
|
value={rt}
|
||||||
|
|||||||
Reference in New Issue
Block a user