Use :chat/close event call

This commit is contained in:
Ulises M 2024-09-11 16:14:37 -06:00
parent 30fe558302
commit a8b65a98fa
No known key found for this signature in database
GPG Key ID: 5A15782EB758534E
1 changed files with 1 additions and 1 deletions

View File

@ -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)