Use stable handler for chat renderer

This commit is contained in:
Icaro Motta 2024-12-23 19:00:20 -03:00
parent 6e5214da72
commit d5fa11a918
No known key found for this signature in database
GPG Key ID: 009557D9D014DF07
2 changed files with 4 additions and 4 deletions

View File

@ -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)

View File

@ -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