File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed
src/status_im2/contexts/chat/messages/content Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 13
13
14
14
(and (not in-pinned-view?) (or mentioned pinned-by last-in-group?))
15
15
(assoc :margin-top 8 ))))
16
+
17
+ (defn user-message-content
18
+ [{:keys [first-in-group? outgoing outgoing-status]}]
19
+ {:border-radius 16
20
+ :padding-horizontal 8
21
+ :padding-vertical (if first-in-group?
22
+ 8
23
+ 4 )
24
+ :opacity (if (and outgoing (= outgoing-status :sending ))
25
+ 0.5
26
+ 1 )})
Original file line number Diff line number Diff line change 134
134
:message-sending
135
135
:message-sent )
136
136
:underlay-color (colors/theme-colors colors/neutral-5 colors/neutral-90)
137
- :style {:border-radius 16
138
- :padding 8
139
- :opacity (if (and outgoing (= outgoing-status :sending )) 0.5 1 )}
137
+ :style (style/user-message-content
138
+ {:first-in-group? (:first-in-group? message-data)
139
+ :outgoing outgoing
140
+ :outgoing-status outgoing-status})
140
141
:on-press (fn []
141
142
(if (and platform/ios? keyboard-shown?)
142
143
(rn/dismiss-keyboard! )
You can’t perform that action at this time.
0 commit comments