Remove from MessageItem
This commit is contained in:
@@ -72,8 +72,7 @@ let MessageItem = ({
|
|||||||
lastInGroupRef.current = isLastInGroup
|
lastInGroupRef.current = isLastInGroup
|
||||||
}
|
}
|
||||||
|
|
||||||
const pendingColor =
|
const pendingColor = t.palette.primary_200
|
||||||
t.name === 'light' ? t.palette.primary_200 : t.palette.primary_800
|
|
||||||
|
|
||||||
const rt = useMemo(() => {
|
const rt = useMemo(() => {
|
||||||
return new RichTextAPI({text: message.text, facets: message.facets})
|
return new RichTextAPI({text: message.text, facets: message.facets})
|
||||||
@@ -110,12 +109,7 @@ let MessageItem = ({
|
|||||||
}>
|
}>
|
||||||
<RichText
|
<RichText
|
||||||
value={rt}
|
value={rt}
|
||||||
style={[
|
style={[a.text_md, isFromSelf && {color: t.palette.white}]}
|
||||||
a.text_md,
|
|
||||||
isFromSelf && {color: t.palette.white},
|
|
||||||
isPending &&
|
|
||||||
t.name !== 'light' && {color: t.palette.primary_300},
|
|
||||||
]}
|
|
||||||
interactiveStyle={a.underline}
|
interactiveStyle={a.underline}
|
||||||
enableTags
|
enableTags
|
||||||
emojiMultiplier={3}
|
emojiMultiplier={3}
|
||||||
|
|||||||
Reference in New Issue
Block a user