Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
ibrkhalil committed Nov 2, 2023
1 parent 5d7bac4 commit 53c32ef
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/status_im2/contexts/chat/messages/navigation/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
messages (rf/sub [:chats/raw-chat-messages-stream
(:chat-id chat)])
more-than-two-messages? (<= 2 (count messages))
more-than-four-messages? (<= 4 (count messages))
more-than-eight-messages? (<= 8 (count messages))
scroll-y-sending-eight-messages-threshold 469]
(rn/use-effect
Expand All @@ -49,8 +50,8 @@
(and
(< 80 (reanimated/get-shared-value scroll-y))
(not @on-end-reached?))
(and composer-active?
more-than-two-messages?)
(and (if platform/ios? more-than-two-messages? more-than-four-messages?)
composer-active?)
(and
(not @on-end-reached?)
@animate-topbar-opacity?)
Expand All @@ -75,10 +76,10 @@
(and (not composer-active?)
more-than-eight-messages?
(= :initial-render @big-name-visible?))
(and more-than-two-messages?
(and (if platform/ios? more-than-two-messages? more-than-four-messages?)
(< title-opacity-interpolation-start (reanimated/get-shared-value scroll-y))
composer-active?)
(and more-than-two-messages?
(and (if platform/ios? more-than-two-messages? more-than-four-messages?)
composer-active?)
@animate-topbar-name?))
(do
Expand Down

0 comments on commit 53c32ef

Please sign in to comment.