fix: avoid locking scroll for contact-list in new-chat sheet

This commit is contained in:
Sean Hagstrom 2024-11-19 10:59:01 -08:00
parent a1e3bb3bd6
commit 7021d5ec78
No known key found for this signature in database
GPG Key ID: 5257FEDF56307320
1 changed files with 1 additions and 2 deletions

View File

@ -86,7 +86,7 @@
item])) item]))
(defn view (defn view
[{:keys [scroll-enabled? on-scroll close]}] [{:keys [on-scroll close]}]
(let [theme (quo.theme/use-theme) (let [theme (quo.theme/use-theme)
contacts (rf/sub [:contacts/sorted-and-grouped-by-first-letter]) contacts (rf/sub [:contacts/sorted-and-grouped-by-first-letter])
selected-contacts-count (rf/sub [:selected-contacts-count]) selected-contacts-count (rf/sub [:selected-contacts-count])
@ -137,7 +137,6 @@
:render-section-footer-fn contact-list/contacts-section-footer :render-section-footer-fn contact-list/contacts-section-footer
:content-container-style {:padding-bottom 70} :content-container-style {:padding-bottom 70}
:render-fn render-fn :render-fn render-fn
:scroll-enabled @scroll-enabled?
:on-scroll on-scroll}]) :on-scroll on-scroll}])
(when contacts-selected? (when contacts-selected?
[rn/view [rn/view