🐛 Fixes problems with comments section

This commit is contained in:
alonso.torres 2021-03-10 11:48:09 +01:00
parent 172372d4c0
commit c12cbbca2e
4 changed files with 15 additions and 12 deletions

View file

@ -327,9 +327,7 @@
(let [{:keys [show mode open]} cstate]
(cond->> threads
(= :pending show)
(filter (fn [item]
(or (not (:is-resolved item))
(= (:id item) open))))
(filter (comp not :is-resolved))
(= :yours mode)
(filter #(contains? (:participants %) (:id profile))))))