fix #1171: hide remove option from profile menu for unremovable contacts

This commit is contained in:
Danny Wilson 2017-07-27 00:02:45 +02:00 committed by Roman Volosovskyi
parent 5b4f15659d
commit 68fe57b016
1 changed files with 2 additions and 1 deletions

View File

@ -40,7 +40,8 @@
(defn profile-toolbar [contact] (defn profile-toolbar [contact]
[toolbar [toolbar
(when-not (:pending? contact) (when (and (not (:pending? contact))
(not (:unremovable? contact)))
{:actions [(act/opts [{:value #(dispatch [:hide-contact contact]) {:actions [(act/opts [{:value #(dispatch [:hide-contact contact])
:text (label :t/remove-from-contacts)}])]})]) :text (label :t/remove-from-contacts)}])]})])