Skip to content

Commit 1bd62f1

Browse files
committed
[#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>
1 parent 2ed25a9 commit 1bd62f1

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/status_im/chat/models.cljs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,7 @@
331331

332332
(fx/defn start-timeline-chat
333333
"Starts a new timeline chat"
334+
{:events [:chat/start-timeline-chat]}
334335
[cofx]
335336
(when-not (active-chat? cofx constants/timeline-chat-id)
336337
(add-public-chat cofx constants/timeline-chat-id nil true)))

src/status_im/chat/models/loading.cljs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@
2828
new-chats)
2929
chats (merge old-chats chats)]
3030
{:db (assoc db :chats chats
31-
:chats/loading? false)}))
31+
:chats/loading? false)
32+
:dispatch-n [[:chat/start-timeline-chat]
33+
[:start-profile-chat (get-in db [:multiaccount :public-key])]]}))
3234

3335
(fx/defn initialize-chats
3436
"Initialize persisted chats on startup"

0 commit comments

Comments
 (0)