Allow unpinning of deleted-for-you messages (#15572)
This commit is contained in:
parent
4d029f06e8
commit
9ddea4805a
|
@ -26,10 +26,10 @@
|
|||
(i18n/label :t/deleted-this-message)]])
|
||||
|
||||
(defn- compute-on-long-press-fn
|
||||
[{:keys [deleted? pinned] :as message}
|
||||
[{:keys [deleted? pinned deleted-for-me?] :as message}
|
||||
{:keys [message-pin-enabled] :as context}]
|
||||
;; only show drawer for user who has the permission to unpin messages
|
||||
(when (and pinned deleted? message-pin-enabled)
|
||||
(when (and pinned (or deleted? deleted-for-me?) message-pin-enabled)
|
||||
(fn []
|
||||
(rf/dispatch [:dismiss-keyboard])
|
||||
(rf/dispatch [:show-bottom-sheet
|
||||
|
|
Loading…
Reference in New Issue