Skip to content

Commit

Permalink
[#12731] Blank space in place of 1-1 chat with a blocked user on the …
Browse files Browse the repository at this point in the history
…home screen

Signed-off-by: andrey <motor4ik@gmail.com>
(cherry picked from commit cd30a04)
  • Loading branch information
flexsurfer committed Oct 21, 2021
1 parent ae7ccc1 commit c34b91b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/status_im/contact/block.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
cofx
{:db (-> db
(update :chats dissoc public-key)
(update :chats-home-list disj public-key)
(assoc-in [:contacts/contacts public-key :added] false))}
fxs)))

Expand Down
6 changes: 5 additions & 1 deletion src/status_im/subs.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -861,7 +861,11 @@
:<- [::chats]
:<- [:chats-home-list]
(fn [[chats active-chats]]
(map #(get chats %) active-chats)))
(reduce #(if-let [item (get chats %2)]
(conj %1 item)
%1)
[]
active-chats)))

(re-frame/reg-sub
:chat-by-id
Expand Down

0 comments on commit c34b91b

Please sign in to comment.