mirror of
https://github.com/status-im/status-react.git
synced 2025-02-05 07:35:00 +00:00
fix channel header is broken when opening channel with chat history after joining the community (#19677)
This commit is contained in:
parent
f873dfcde0
commit
e6f8df9a52
@ -120,7 +120,7 @@
|
|||||||
|
|
||||||
(defn view
|
(defn view
|
||||||
[{:keys [distance-from-list-top chat-screen-layout-calculations-complete?]}]
|
[{:keys [distance-from-list-top chat-screen-layout-calculations-complete?]}]
|
||||||
(let [{:keys [chat-id chat-type last-message]
|
(let [{:keys [chat-id chat-type]
|
||||||
:as chat} (rf/sub [:chats/current-chat-chat-view])
|
:as chat} (rf/sub [:chats/current-chat-chat-view])
|
||||||
all-loaded? (reanimated/use-shared-value false)
|
all-loaded? (reanimated/use-shared-value false)
|
||||||
all-loaded-sub (rf/sub [:chats/all-loaded? chat-id])
|
all-loaded-sub (rf/sub [:chats/all-loaded? chat-id])
|
||||||
@ -137,12 +137,11 @@
|
|||||||
[all-loaded-sub])
|
[all-loaded-sub])
|
||||||
[rn/view
|
[rn/view
|
||||||
{:style (style/navigation-view navigation-view-height messages.constants/pinned-banner-height)}
|
{:style (style/navigation-view navigation-view-height messages.constants/pinned-banner-height)}
|
||||||
(when (seq last-message)
|
[animated-background-and-pinned-banner
|
||||||
[animated-background-and-pinned-banner
|
{:chat-id chat-id
|
||||||
{:chat-id chat-id
|
:navigation-view-height navigation-view-height
|
||||||
:navigation-view-height navigation-view-height
|
:distance-from-list-top distance-from-list-top
|
||||||
:distance-from-list-top distance-from-list-top
|
:all-loaded? all-loaded?}]
|
||||||
:all-loaded? all-loaded?}])
|
|
||||||
[rn/view {:style (style/header-container top-insets top-bar-height)}
|
[rn/view {:style (style/header-container top-insets top-bar-height)}
|
||||||
[reanimated/view {:style (style/button-animation-container navigation-buttons-opacity)}
|
[reanimated/view {:style (style/button-animation-container navigation-buttons-opacity)}
|
||||||
[quo/button
|
[quo/button
|
||||||
|
Loading…
x
Reference in New Issue
Block a user