fix #1171: hide remove option from profile menu for unremovable contacts
This commit is contained in:
parent
5b4f15659d
commit
68fe57b016
|
@ -40,7 +40,8 @@
|
|||
|
||||
(defn profile-toolbar [contact]
|
||||
[toolbar
|
||||
(when-not (:pending? contact)
|
||||
(when (and (not (:pending? contact))
|
||||
(not (:unremovable? contact)))
|
||||
{:actions [(act/opts [{:value #(dispatch [:hide-contact contact])
|
||||
:text (label :t/remove-from-contacts)}])]})])
|
||||
|
||||
|
|
Loading…
Reference in New Issue