Skip to content

Commit

Permalink
Final
Browse files Browse the repository at this point in the history
  • Loading branch information
ibrkhalil committed Oct 31, 2023
1 parent 2f711b9 commit 9614f5e
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions src/status_im2/contexts/chat/messages/navigation/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,18 @@
more-than-seven-messages? (<= 7 (count messages))]
(rn/use-effect
(fn []
(if (or
(and (not composer-active?)
more-than-seven-messages?
(= :initial-render @big-name-visible?))
(and more-than-two-messages?
(< title-opacity-interpolation-start (reanimated/get-shared-value scroll-y))
composer-active?)
(and more-than-two-messages?
composer-active?)
@animate-topbar-name?
@animate-topbar-opacity?)
(if (when (and @on-end-reached? (not composer-active?))
(or
(and (not composer-active?)
more-than-seven-messages?
(= :initial-render @big-name-visible?))
(and more-than-two-messages?
(< title-opacity-interpolation-start (reanimated/get-shared-value scroll-y))
composer-active?)
(and more-than-two-messages?
composer-active?)
@animate-topbar-name?
@animate-topbar-opacity?))
(do
(reanimated/animate title-opacity-animation 1)
(reanimated/animate opacity-animation 1)
Expand Down

0 comments on commit 9614f5e

Please sign in to comment.