From f17484f61b429e7a5141c76b4149433c71ca13e7 Mon Sep 17 00:00:00 2001 From: Parvesh Monu Date: Sat, 25 May 2024 00:00:46 +0530 Subject: [PATCH] fix missing pinned messages label (#20174) --- .../chat/messenger/messages/list/view.cljs | 44 +++++++++---------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/src/status_im/contexts/chat/messenger/messages/list/view.cljs b/src/status_im/contexts/chat/messenger/messages/list/view.cljs index adc6718154..ac250d2c37 100644 --- a/src/status_im/contexts/chat/messenger/messages/list/view.cljs +++ b/src/status_im/contexts/chat/messenger/messages/list/view.cljs @@ -187,29 +187,29 @@ muted? (and muted (some? muted-till)) mute-chat-label (if community-channel? :t/mute-channel :t/mute-chat) unmute-chat-label (if community-channel? :t/unmute-channel :t/unmute-chat)] - [quo/channel-actions - {:actions [{:accessibility-label :action-button-pinned - :big? true - :label (or latest-pin-text (i18n/label :t/no-pinned-messages)) - :customization-color cover-bg-color - :icon :i/pin - :counter-value pins-count - :on-press (fn [] - (rf/dispatch [:pin-message/show-pins-bottom-sheet - chat-id]))} - {:accessibility-label :action-button-mute - :label (i18n/label (if muted - unmute-chat-label - mute-chat-label)) - :customization-color cover-bg-color - :icon (if muted? :i/activity-center :i/muted) - :on-press (fn [] - (if muted? - (home.actions/unmute-chat-action chat-id) - (home.actions/mute-chat-action chat-id - chat-type - muted?)))}]}])) + {:actions + [{:accessibility-label :action-button-pinned + :big? true + :label (if (pos? pins-count) latest-pin-text (i18n/label :t/no-pinned-messages)) + :customization-color cover-bg-color + :icon :i/pin + :counter-value pins-count + :on-press (fn [] + (rf/dispatch [:pin-message/show-pins-bottom-sheet + chat-id]))} + {:accessibility-label :action-button-mute + :label (i18n/label (if muted + unmute-chat-label + mute-chat-label)) + :customization-color cover-bg-color + :icon (if muted? :i/activity-center :i/muted) + :on-press (fn [] + (if muted? + (home.actions/unmute-chat-action chat-id) + (home.actions/mute-chat-action chat-id + chat-type + muted?)))}]}])) (defn bio-and-actions [{:keys [distance-from-list-top bio chat-id customization-color empty-chat? description]}]