fix Missing 'Mark as read' option on community channels (#20838)
This commit is contained in:
parent
08b65cbcb7
commit
540094c229
|
@ -47,12 +47,11 @@
|
||||||
:label (i18n/label :t/view-token-gating)}))
|
:label (i18n/label :t/view-token-gating)}))
|
||||||
|
|
||||||
(defn- action-mark-as-read
|
(defn- action-mark-as-read
|
||||||
[]
|
[chat-id]
|
||||||
(when config/show-not-implemented-features?
|
|
||||||
{:icon :i/mark-as-read
|
{:icon :i/mark-as-read
|
||||||
:accessibility-label :chat-mark-as-read
|
:accessibility-label :chat-mark-as-read
|
||||||
:on-press not-implemented/alert
|
:on-press #(hide-sheet-and-dispatch [:chat.ui/mark-all-read-pressed chat-id])
|
||||||
:label (i18n/label :t/mark-as-read)}))
|
:label (i18n/label :t/mark-as-read)})
|
||||||
|
|
||||||
(defn- action-toggle-muted
|
(defn- action-toggle-muted
|
||||||
[id muted? muted-till chat-type]
|
[id muted? muted-till chat-type]
|
||||||
|
@ -130,7 +129,7 @@
|
||||||
(and (not inside-chat?) (not locked?))
|
(and (not inside-chat?) (not locked?))
|
||||||
[quo/action-drawer
|
[quo/action-drawer
|
||||||
[[(when-not hide-view-members? (action-view-members-and-details community-id chat-id))
|
[[(when-not hide-view-members? (action-view-members-and-details community-id chat-id))
|
||||||
(action-mark-as-read)
|
(action-mark-as-read chat-id)
|
||||||
(action-toggle-muted chat-id muted muted-till chat-type)
|
(action-toggle-muted chat-id muted muted-till chat-type)
|
||||||
(action-notification-settings)
|
(action-notification-settings)
|
||||||
(action-pinned-messages chat-id)
|
(action-pinned-messages chat-id)
|
||||||
|
@ -143,7 +142,7 @@
|
||||||
[[(action-view-members-and-details community-id chat-id)
|
[[(action-view-members-and-details community-id chat-id)
|
||||||
(when token-gated?
|
(when token-gated?
|
||||||
(action-token-requirements))
|
(action-token-requirements))
|
||||||
(action-mark-as-read)
|
(action-mark-as-read chat-id)
|
||||||
(action-toggle-muted chat-id muted muted-till chat-type)
|
(action-toggle-muted chat-id muted muted-till chat-type)
|
||||||
(action-notification-settings)
|
(action-notification-settings)
|
||||||
(when config/fetch-messages-enabled?
|
(when config/fetch-messages-enabled?
|
||||||
|
|
Loading…
Reference in New Issue