[#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
parent 2ed25a9f51
commit 1bd62f1199
No known key found for this signature in database
GPG Key ID: 89B67245FD2F0272
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"