Skip to content

Commit

Permalink
fix wrong composer opacity with minimised keyboard when editing message
Browse files Browse the repository at this point in the history
  • Loading branch information
Parveshdhull committed Jun 5, 2024
1 parent 9445363 commit 0b47d47
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
5 changes: 2 additions & 3 deletions src/status_im/contexts/chat/messenger/composer/effects.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,10 @@
(reset! gesture-enabled? false)))

(defn empty-effect
[{:keys [empty-input?]}
{:keys [input-text images link-previews? reply audio]}]
[{:keys [empty-input?]} subscriptions]
(reanimated/set-shared-value
empty-input?
(utils/empty-input? input-text images link-previews? reply audio)))
(utils/empty-input? subscriptions)))

(defn component-will-unmount
[{:keys [keyboard-show-listener keyboard-hide-listener keyboard-frame-listener]}]
Expand Down
8 changes: 2 additions & 6 deletions src/status_im/contexts/chat/messenger/composer/utils.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,8 @@
(calc-bottom-content-height images link-previews?))))

(defn empty-input?
[text images link-previews? reply? audio?]
(and (empty? text)
(empty? images)
(not link-previews?)
(not reply?)
(not audio?)))
[{:keys [input-text images link-previews? reply? audio edit]}]
(not (or input-text images link-previews? reply? audio edit)))

(defn blur-input
[input-ref]
Expand Down

0 comments on commit 0b47d47

Please sign in to comment.