[#12011] Invisible messages in public and group chats if they were received while user was on another screen

Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
This commit is contained in:
andrey 2021-04-21 11:38:12 +02:00 committed by Andrea Maria Piana
parent c2212af3ff
commit d59c9205ea
No known key found for this signature in database
GPG Key ID: AA6CCA6DE0E06424
1 changed files with 2 additions and 1 deletions

View File

@ -273,7 +273,8 @@
{:events [:chat.ui/navigate-to-chat]}
[{db :db :as cofx} chat-id]
(fx/merge cofx
{:db (assoc db :current-chat-id chat-id)}
(close-chat)
#(assoc-in % [:db :current-chat-id] chat-id)
(preload-chat-data chat-id)
(navigation/navigate-to-cofx :chat-stack {:screen :chat})))