Skip to content

Commit

Permalink
fix bottom message in the chat history is hidden behind the composer …
Browse files Browse the repository at this point in the history
…with an image in it (#17757)
  • Loading branch information
Parveshdhull authored Oct 30, 2023
1 parent 55b233c commit cebec10
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/status_im2/contexts/chat/messages/list/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -130,13 +130,15 @@

(defn list-header
[insets able-to-send-message? theme]
[rn/view
{:background-color (colors/theme-colors colors/white colors/neutral-95 theme)
:height (+ (if able-to-send-message?
(+ composer.constants/composer-default-height
jump-to.constants/floating-shell-button-height
(:bottom insets))
(- 70 (:bottom insets))))}])
(let [images (rf/sub [:chats/sending-image])]
[rn/view
{:background-color (colors/theme-colors colors/white colors/neutral-95 theme)
:height (if able-to-send-message?
(+ composer.constants/composer-default-height
jump-to.constants/floating-shell-button-height
(if (seq images) composer.constants/images-container-height 0)
(:bottom insets))
(- 70 (:bottom insets)))}]))

(defn f-list-footer-avatar
[{:keys [scroll-y display-name online? profile-picture]}]
Expand Down

0 comments on commit cebec10

Please sign in to comment.