fix bottom message in the chat history is hidden behind the composer with an image in it (#17757)

This commit is contained in:
Parvesh Monu 2023-10-30 15:46:16 +05:30 committed by GitHub
parent 55b233c528
commit cebec10aa5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 7 deletions

View File

@ -130,13 +130,15 @@
(defn list-header (defn list-header
[insets able-to-send-message? theme] [insets able-to-send-message? theme]
(let [images (rf/sub [:chats/sending-image])]
[rn/view [rn/view
{:background-color (colors/theme-colors colors/white colors/neutral-95 theme) {:background-color (colors/theme-colors colors/white colors/neutral-95 theme)
:height (+ (if able-to-send-message? :height (if able-to-send-message?
(+ composer.constants/composer-default-height (+ composer.constants/composer-default-height
jump-to.constants/floating-shell-button-height jump-to.constants/floating-shell-button-height
(if (seq images) composer.constants/images-container-height 0)
(:bottom insets)) (:bottom insets))
(- 70 (:bottom insets))))}]) (- 70 (:bottom insets)))}]))
(defn f-list-footer-avatar (defn f-list-footer-avatar
[{:keys [scroll-y display-name online? profile-picture]}] [{:keys [scroll-y display-name online? profile-picture]}]