fix missing pinned messages label (#20174)
This commit is contained in:
parent
49a41f4787
commit
f17484f61b
|
@ -187,29 +187,29 @@
|
||||||
muted? (and muted (some? muted-till))
|
muted? (and muted (some? muted-till))
|
||||||
mute-chat-label (if community-channel? :t/mute-channel :t/mute-chat)
|
mute-chat-label (if community-channel? :t/mute-channel :t/mute-chat)
|
||||||
unmute-chat-label (if community-channel? :t/unmute-channel :t/unmute-chat)]
|
unmute-chat-label (if community-channel? :t/unmute-channel :t/unmute-chat)]
|
||||||
|
|
||||||
[quo/channel-actions
|
[quo/channel-actions
|
||||||
{:actions [{:accessibility-label :action-button-pinned
|
{:actions
|
||||||
:big? true
|
[{:accessibility-label :action-button-pinned
|
||||||
:label (or latest-pin-text (i18n/label :t/no-pinned-messages))
|
:big? true
|
||||||
:customization-color cover-bg-color
|
:label (if (pos? pins-count) latest-pin-text (i18n/label :t/no-pinned-messages))
|
||||||
:icon :i/pin
|
:customization-color cover-bg-color
|
||||||
:counter-value pins-count
|
:icon :i/pin
|
||||||
:on-press (fn []
|
:counter-value pins-count
|
||||||
(rf/dispatch [:pin-message/show-pins-bottom-sheet
|
:on-press (fn []
|
||||||
chat-id]))}
|
(rf/dispatch [:pin-message/show-pins-bottom-sheet
|
||||||
{:accessibility-label :action-button-mute
|
chat-id]))}
|
||||||
:label (i18n/label (if muted
|
{:accessibility-label :action-button-mute
|
||||||
unmute-chat-label
|
:label (i18n/label (if muted
|
||||||
mute-chat-label))
|
unmute-chat-label
|
||||||
:customization-color cover-bg-color
|
mute-chat-label))
|
||||||
:icon (if muted? :i/activity-center :i/muted)
|
:customization-color cover-bg-color
|
||||||
:on-press (fn []
|
:icon (if muted? :i/activity-center :i/muted)
|
||||||
(if muted?
|
:on-press (fn []
|
||||||
(home.actions/unmute-chat-action chat-id)
|
(if muted?
|
||||||
(home.actions/mute-chat-action chat-id
|
(home.actions/unmute-chat-action chat-id)
|
||||||
chat-type
|
(home.actions/mute-chat-action chat-id
|
||||||
muted?)))}]}]))
|
chat-type
|
||||||
|
muted?)))}]}]))
|
||||||
|
|
||||||
(defn bio-and-actions
|
(defn bio-and-actions
|
||||||
[{:keys [distance-from-list-top bio chat-id customization-color empty-chat? description]}]
|
[{:keys [distance-from-list-top bio chat-id customization-color empty-chat? description]}]
|
||||||
|
|
Loading…
Reference in New Issue