Fixes for composer (#19854)

Fixes for composer (#19854)
This commit is contained in:
Omar Basem 2024-05-01 16:59:13 +04:00 committed by GitHub
parent 6037fe80c4
commit d4be3a6976
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 6 deletions

View File

@ -106,10 +106,7 @@
(fn []
(empty-effect animations subscriptions))
[input-text images link-previews? reply])
(rn/use-effect
(fn []
(reenter-screen-effect state dimensions subscriptions animations))
[max-height subscriptions]))
(rn/use-mount #(reenter-screen-effect state dimensions subscriptions animations)))
(defn use-edit
[{:keys [input-ref]}

View File

@ -32,8 +32,10 @@
(reanimated/set-shared-value saved-height max-height)
(reanimated/set-shared-value background-y 0)
(reanimated/animate opacity 1)
(reset! maximized? true)
(rf/dispatch [:chat.ui/set-input-maximized true]))
(js/setTimeout (fn []
(reset! maximized? true)
(rf/dispatch [:chat.ui/set-input-maximized true]))
300))
(defn minimize
[{:keys [input-ref emoji-kb-extra-height saved-emoji-kb-extra-height]}