[#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:
parent
2ed25a9f51
commit
1bd62f1199
|
@ -331,6 +331,7 @@
|
||||||
|
|
||||||
(fx/defn start-timeline-chat
|
(fx/defn start-timeline-chat
|
||||||
"Starts a new timeline chat"
|
"Starts a new timeline chat"
|
||||||
|
{:events [:chat/start-timeline-chat]}
|
||||||
[cofx]
|
[cofx]
|
||||||
(when-not (active-chat? cofx constants/timeline-chat-id)
|
(when-not (active-chat? cofx constants/timeline-chat-id)
|
||||||
(add-public-chat cofx constants/timeline-chat-id nil true)))
|
(add-public-chat cofx constants/timeline-chat-id nil true)))
|
||||||
|
|
|
@ -28,7 +28,9 @@
|
||||||
new-chats)
|
new-chats)
|
||||||
chats (merge old-chats chats)]
|
chats (merge old-chats chats)]
|
||||||
{:db (assoc db :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
|
(fx/defn initialize-chats
|
||||||
"Initialize persisted chats on startup"
|
"Initialize persisted chats on startup"
|
||||||
|
|
Loading…
Reference in New Issue