fix local nicknames

This commit is contained in:
andrey 2020-09-14 12:22:46 +02:00
parent 59e226bab2
commit 1e5288a016
No known key found for this signature in database
GPG Key ID: 89B67245FD2F0272
1 changed files with 9 additions and 10 deletions

View File

@ -89,12 +89,14 @@
:accessory-text (or (:nickname names) (i18n/label :t/none))
:on-press #(re-frame/dispatch [:navigate-to :nickname])
:chevron true}]
;; 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}]]))
: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]]]))))