Use stable handler for chat renderer
This commit is contained in:
parent
6e5214da72
commit
d5fa11a918
|
@ -282,8 +282,9 @@
|
||||||
|
|
||||||
(defn chat-list-item
|
(defn chat-list-item
|
||||||
[{:keys [chat-id chat-type]
|
[{:keys [chat-id chat-type]
|
||||||
:as item} theme]
|
:as item}]
|
||||||
(let [customization-color (rf/sub [:profile/customization-color])]
|
(let [customization-color (rf/sub [:profile/customization-color])
|
||||||
|
theme (quo.theme/use-theme)]
|
||||||
[rn/touchable-highlight
|
[rn/touchable-highlight
|
||||||
{:style style/container
|
{:style style/container
|
||||||
:on-press (open-chat chat-id)
|
:on-press (open-chat chat-id)
|
||||||
|
|
|
@ -76,8 +76,7 @@
|
||||||
:on-end-reached on-end-reached
|
:on-end-reached on-end-reached
|
||||||
:keyboard-should-persist-taps :always
|
:keyboard-should-persist-taps :always
|
||||||
:data items
|
:data items
|
||||||
:render-fn (fn [item]
|
:render-fn chat-list-item/chat-list-item
|
||||||
(chat-list-item/chat-list-item item theme))
|
|
||||||
:scroll-event-throttle 8
|
:scroll-event-throttle 8
|
||||||
:content-container-style {:padding-bottom
|
:content-container-style {:padding-bottom
|
||||||
shell.constants/floating-shell-button-height
|
shell.constants/floating-shell-button-height
|
||||||
|
|
Loading…
Reference in New Issue