[#12033] Can't open Status tab after upgrade from 1.12 to 1.13 if the tab has never been opened before upgrade

Signed-off-by: andrey <motor4ik@gmail.com>
This commit is contained in:
andrey 2021-04-23 12:41:33 +02:00 committed by Andrea Maria Piana
parent 2c4387a0f1
commit 896b583da1
No known key found for this signature in database
GPG Key ID: AA6CCA6DE0E06424
2 changed files with 4 additions and 1 deletions

View File

@ -331,6 +331,7 @@
(fx/defn start-timeline-chat
"Starts a new timeline chat"
{:events [:chat/start-timeline-chat]}
[cofx]
(when-not (active-chat? cofx constants/timeline-chat-id)
(add-public-chat cofx constants/timeline-chat-id nil true)))

View File

@ -28,7 +28,9 @@
new-chats)
chats (merge old-chats chats)]
{:db (assoc db :chats chats
:chats/loading? false)}))
:chats/loading? false)
:dispatch-n [[:chat/start-timeline-chat]
[:start-profile-chat (get-in db [:multiaccount :public-key])]]}))
(fx/defn initialize-chats
"Initialize persisted chats on startup"