Keep message list rendered while switching between tabs
This commit is contained in:
parent
ff3a54e9e3
commit
a3316bc8fa
|
@ -198,8 +198,7 @@
|
||||||
my-public-key [:account/public-key]
|
my-public-key [:account/public-key]
|
||||||
show-bottom-info? [:chats/current-chat-ui-prop :show-bottom-info?]
|
show-bottom-info? [:chats/current-chat-ui-prop :show-bottom-info?]
|
||||||
show-message-options? [:chats/current-chat-ui-prop :show-message-options?]
|
show-message-options? [:chats/current-chat-ui-prop :show-message-options?]
|
||||||
show-stickers? [:chats/current-chat-ui-prop :show-stickers?]
|
show-stickers? [:chats/current-chat-ui-prop :show-stickers?]]
|
||||||
current-view [:get :view-id]]
|
|
||||||
;; this scroll-view is a hack that allows us to use on-blur and on-focus on Android
|
;; this scroll-view is a hack that allows us to use on-blur and on-focus on Android
|
||||||
;; more details here: https://github.com/facebook/react-native/issues/11071
|
;; more details here: https://github.com/facebook/react-native/issues/11071
|
||||||
[react/scroll-view {:scroll-enabled false
|
[react/scroll-view {:scroll-enabled false
|
||||||
|
@ -210,10 +209,8 @@
|
||||||
:on-layout (fn [e]
|
:on-layout (fn [e]
|
||||||
(re-frame/dispatch [:set :layout-height (-> e .-nativeEvent .-layout .-height)]))}
|
(re-frame/dispatch [:set :layout-height (-> e .-nativeEvent .-layout .-height)]))}
|
||||||
[chat-toolbar public? modal?]
|
[chat-toolbar public? modal?]
|
||||||
(if (or (= :chat current-view) modal?)
|
[messages-view-animation
|
||||||
[messages-view-animation
|
[messages-view-wrapper modal?]]
|
||||||
[messages-view-wrapper modal?]]
|
|
||||||
[react/view style/message-view-preview])
|
|
||||||
(when (show-input-container? my-public-key current-chat)
|
(when (show-input-container? my-public-key current-chat)
|
||||||
[input/container])
|
[input/container])
|
||||||
(when show-stickers?
|
(when show-stickers?
|
||||||
|
|
Loading…
Reference in New Issue