fix the mention highlighted area is only updated after reopening the chat (#19076)
This commit is contained in:
parent
f788d7bc85
commit
613e48ece3
|
@ -17,8 +17,6 @@
|
||||||
{:flex-direction :row
|
{:flex-direction :row
|
||||||
:align-items :center
|
:align-items :center
|
||||||
:height (if platform/ios? 22 21)
|
:height (if platform/ios? 22 21)
|
||||||
:background-color colors/primary-50-opa-10
|
|
||||||
:padding-horizontal 3
|
|
||||||
:border-radius 6
|
:border-radius 6
|
||||||
:transform [{:translateY (if platform/ios? (if first-child-mention 4.5 3) 4.5)}]})
|
:transform [{:translateY (if platform/ios? (if first-child-mention 4.5 3) 4.5)}]})
|
||||||
|
|
||||||
|
@ -26,6 +24,8 @@
|
||||||
{:color (colors/theme-colors colors/primary-50
|
{:color (colors/theme-colors colors/primary-50
|
||||||
colors/primary-60)
|
colors/primary-60)
|
||||||
:selection-color :transparent
|
:selection-color :transparent
|
||||||
|
:background-color colors/primary-50-opa-10
|
||||||
|
:padding-horizontal 3
|
||||||
:suppress-highlighting true})
|
:suppress-highlighting true})
|
||||||
|
|
||||||
(defn code
|
(defn code
|
||||||
|
|
|
@ -56,14 +56,16 @@
|
||||||
:mention
|
:mention
|
||||||
(conj
|
(conj
|
||||||
units
|
units
|
||||||
|
(let [resolved-mention (rf/sub [:messages/resolve-mention literal])]
|
||||||
[rn/pressable
|
[rn/pressable
|
||||||
{:on-press #(rf/dispatch [:chat.ui/show-profile literal])
|
{:on-press #(rf/dispatch [:chat.ui/show-profile literal])
|
||||||
|
:key resolved-mention
|
||||||
:style (style/mention-tag-wrapper first-child-mention)}
|
:style (style/mention-tag-wrapper first-child-mention)}
|
||||||
[quo/text
|
[quo/text
|
||||||
{:weight :medium
|
{:weight :medium
|
||||||
:style style/mention-tag-text
|
:style style/mention-tag-text
|
||||||
:size :paragraph-1}
|
:size :paragraph-1}
|
||||||
(rf/sub [:messages/resolve-mention literal])]])
|
resolved-mention]]))
|
||||||
|
|
||||||
:edited
|
:edited
|
||||||
(conj units
|
(conj units
|
||||||
|
|
Loading…
Reference in New Issue