Use :chat/close event call
This commit is contained in:
parent
30fe558302
commit
a8b65a98fa
|
@ -57,7 +57,7 @@
|
|||
chat-screen-layout-calculations-complete?}]
|
||||
(when *screen-loaded?*
|
||||
(rn/use-mount #(reset! *screen-loaded?* true)))
|
||||
(rn/use-unmount #(rf/dispatch [:chat/clear-current-chat-id]))
|
||||
(rn/use-unmount #(rf/dispatch [:chat/close]))
|
||||
(when-not (if *screen-loaded?* @*screen-loaded?* screen-loaded?)
|
||||
(reanimated/set-shared-value chat-screen-layout-calculations-complete? false)
|
||||
(reanimated/set-shared-value distance-from-list-top 0)
|
||||
|
|
Loading…
Reference in New Issue