diff --git a/src/status_im/ui/screens/chat/sheets.cljs b/src/status_im/ui/screens/chat/sheets.cljs index 225b2e97fe..85ae1ce25f 100644 --- a/src/status_im/ui/screens/chat/sheets.cljs +++ b/src/status_im/ui/screens/chat/sheets.cljs @@ -94,12 +94,6 @@ :chevron true :accessibility-label :view-community-channel-details :on-press #(hide-sheet-and-dispatch [:navigate-to :community-channel-details {:chat-id chat-id}])}] - [quo/list-item - {:theme :accent - :title (i18n/label :t/pinned-messages) - :icon :main-icons/pin - :accessory :text - :on-press #(hide-sheet-and-dispatch [:contact.ui/pinned-messages-pressed chat-id])}] [quo/list-item {:theme :accent :title (i18n/label :t/mark-all-read) diff --git a/src/status_im/ui/screens/communities/channel_details.cljs b/src/status_im/ui/screens/communities/channel_details.cljs index b3e58abec2..d88e456ee9 100644 --- a/src/status_im/ui/screens/communities/channel_details.cljs +++ b/src/status_im/ui/screens/communities/channel_details.cljs @@ -4,7 +4,8 @@ [status-im.ui.components.profile-header.view :as profile-header] [status-im.i18n.i18n :as i18n] [clojure.string :as string] - [status-im.communities.core :as communities])) + [status-im.communities.core :as communities] + [re-frame.core :as re-frame])) (defn view [] (let [{:keys [chat-id]} (evt [:navigate-back])}] @@ -42,4 +44,10 @@ :accessory :text :accessory-text (if category (:name category) - (i18n/label :t/none))}])])])))) \ No newline at end of file + (i18n/label :t/none))}]) + [quo/list-item + {:title (i18n/label :t/pinned-messages) + :accessory :text + :accessory-text (count pinned-messages) + :chevron true + :on-press #(re-frame/dispatch [:contact.ui/pinned-messages-pressed chat-id])}]])]))))