From 1e5288a016d0d9169115ce1c40d5e43b956f68f9 Mon Sep 17 00:00:00 2001 From: andrey Date: Mon, 14 Sep 2020 12:22:46 +0200 Subject: [PATCH] fix local nicknames --- .../ui/screens/profile/contact/views.cljs | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/src/status_im/ui/screens/profile/contact/views.cljs b/src/status_im/ui/screens/profile/contact/views.cljs index 570cf1834c..739744c540 100644 --- a/src/status_im/ui/screens/profile/contact/views.cljs +++ b/src/status_im/ui/screens/profile/contact/views.cljs @@ -89,12 +89,14 @@ :accessory-text (or (:nickname names) (i18n/label :t/none)) :on-press #(re-frame/dispatch [:navigate-to :nickname]) :chevron true}] - [quo/list-item - {:title (i18n/label :t/mute) - :active muted? - :accessibility-label :mute-chat - :on-press #(re-frame/dispatch [::chat.models/mute-chat-toggled public-key (not muted?)]) - :accessory :switch}]])) + ;; Mute chat is only supported on ios for now + (when platform/ios? + [quo/list-item + {:title (i18n/label :t/mute) + :active muted? + :accessibility-label :mute-chat + :on-press #(re-frame/dispatch [::chat.models/mute-chat-toggled public-key (not muted?)]) + :accessory :switch}])])) (defn chat-settings [contact] [react/view @@ -205,8 +207,5 @@ :on-press action}]))] [react/view styles/contact-profile-details-container [profile-details contact] - ;; Mute chat is only supported on ios for now - (when platform/ios? - [react/view {} - [chat-settings contact]])] + [chat-settings contact]] [block-contact-action contact]]]))))