Skip to content

Commit

Permalink
fix #12669
Browse files Browse the repository at this point in the history
  • Loading branch information
rasom committed Sep 30, 2021
1 parent e5dbc7a commit 7bb468e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/status_im/chat/models.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 7bb468e

Please sign in to comment.