From 896b583da1a5c9ed7ab32de3bdb0cc299d8e1418 Mon Sep 17 00:00:00 2001 From: andrey Date: Fri, 23 Apr 2021 12:41:33 +0200 Subject: [PATCH] [#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 --- src/status_im/chat/models.cljs | 1 + src/status_im/chat/models/loading.cljs | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/status_im/chat/models.cljs b/src/status_im/chat/models.cljs index 0f227e7790..c93131d296 100644 --- a/src/status_im/chat/models.cljs +++ b/src/status_im/chat/models.cljs @@ -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))) diff --git a/src/status_im/chat/models/loading.cljs b/src/status_im/chat/models/loading.cljs index cf312cc9e2..8605987169 100644 --- a/src/status_im/chat/models/loading.cljs +++ b/src/status_im/chat/models/loading.cljs @@ -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"