File tree Expand file tree Collapse file tree 3 files changed +16
-16
lines changed
src/status_im/contexts/chat/messenger Expand file tree Collapse file tree 3 files changed +16
-16
lines changed Original file line number Diff line number Diff line change 6363 :render-data (assoc render-data :disable-message-long-press? disable-message-long-press?)
6464 :render-fn message-render-fn
6565 :footer [rn/view {:style style/list-footer}]
66- :content-container-style {:padding-top 16
67- :padding-bottom 16 }
66+ :content-container-style {:padding-top 8
67+ :padding-bottom 8 }
6868 :key-fn list-key-fn
6969 :separator [quo/separator {:style {:margin-vertical 8 }}]}]
7070 [empty-pinned-messages-state
Original file line number Diff line number Diff line change 99 (cond-> {:border-radius 16
1010 :margin-horizontal 8 }
1111
12- in-pinned-view?
13- (assoc :padding-vertical 0 )
14-
1512 (and (not in-pinned-view?) (or mentioned pinned-by))
1613 (assoc :background-color colors/primary-50-opa-5 :margin-bottom 4 )
1714
1815 (and (not in-pinned-view?) (not system-message?) (or mentioned pinned-by last-in-group?))
1916 (assoc :margin-top 4 )))
2017
2118(defn user-message-content
22- [{:keys [outgoing outgoing-status six-reactions? window-scale small-screen?]}]
19+ [{:keys [outgoing outgoing-status six-reactions? window-scale small-screen? in-pinned-view? ]}]
2320 {:border-radius 16
2421 :padding-horizontal 8
25- :padding-top 4
26- :padding-bottom (if (or small-screen?
27- (and
28- (> 3 window-scale)
29- six-reactions?))
30- (* message-padding-scaling-ratio window-scale)
31- 4 )
22+ :padding-top (if in-pinned-view? 8 4 )
23+ :padding-bottom (if in-pinned-view?
24+ 5
25+ (when (or small-screen?
26+ (and
27+ (> 3 window-scale)
28+ six-reactions?))
29+ (* message-padding-scaling-ratio window-scale)))
3230 :opacity (if (and outgoing (= outgoing-status :sending ))
3331 0.5
3432 1 )})
Original file line number Diff line number Diff line change 152152 []
153153 (let [show-delivery-state? (reagent/atom false )]
154154 (fn [{:keys [message-data context keyboard-shown? show-reactions? in-reaction-and-action-menu?
155- show-user-info? preview? theme]}]
155+ show-user-info? preview? in-pinned-view? theme]}]
156156 (let [{:keys [content-type quoted-message content outgoing outgoing-status pinned-by pinned
157157 last-in-group? message-id chat-id]} message-data
158158 {:keys [disable-message-long-press?]} context
195195 :outgoing-status outgoing-status
196196 :small-screen? rn/small-screen?
197197 :window-scale window-scale
198- :six-reactions? six-reactions?})
198+ :six-reactions? six-reactions?
199+ :in-pinned-view? in-pinned-view?})
199200 :on-press (fn []
200201 (if (and platform/ios? keyboard-shown?)
201202 (do
337338 {:message-data message-data
338339 :context context
339340 :keyboard-shown? keyboard-shown?
340- :show-reactions? true }])]))
341+ :show-reactions? true
342+ :in-pinned-view? in-pinned-view?}])]))
You can’t perform that action at this time.
0 commit comments