From 68fe57b016adcec2393ed779b46f86030f9cfab8 Mon Sep 17 00:00:00 2001 From: Danny Wilson Date: Thu, 27 Jul 2017 00:02:45 +0200 Subject: [PATCH] fix #1171: hide remove option from profile menu for unremovable contacts --- src/status_im/profile/screen.cljs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/status_im/profile/screen.cljs b/src/status_im/profile/screen.cljs index 1b4173e5a2..a450bcdbd1 100644 --- a/src/status_im/profile/screen.cljs +++ b/src/status_im/profile/screen.cljs @@ -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)}])]})])