diff --git a/src/status_im/chat/models.cljs b/src/status_im/chat/models.cljs index 17947b352d0c..b8fe1837c8d5 100644 --- a/src/status_im/chat/models.cljs +++ b/src/status_im/chat/models.cljs @@ -46,7 +46,8 @@ (community-chat? (get-chat cofx chat-id)))) (defn active-chat? [cofx chat-id] - (not (nil? (get-chat cofx chat-id)))) + (let [chat (get-chat cofx chat-id)] + (not (:active chat)))) (defn foreground-chat? [{{:keys [current-chat-id view-id]} :db} chat-id]