fix: no delete-by ui for delete for me message (#15171)
issue 1 in https://github.com/status-im/status-mobile/issues/15115
This commit is contained in:
parent
6c7054b5b4
commit
b192e9efd4
|
@ -50,13 +50,14 @@
|
||||||
:animate-landing? (or deleted-undoable-till deleted-for-me-undoable-till)}]))
|
:animate-landing? (or deleted-undoable-till deleted-for-me-undoable-till)}]))
|
||||||
|
|
||||||
(defn deleted-message
|
(defn deleted-message
|
||||||
[{:keys [deleted? deleted-by deleted-undoable-till timestamp-str deleted-for-me-undoable-till from]
|
[{:keys [deleted? deleted-by deleted-undoable-till timestamp-str
|
||||||
|
deleted-for-me-undoable-till from]
|
||||||
:as message}
|
:as message}
|
||||||
context]
|
context]
|
||||||
(let [pub-key (rf/sub [:multiaccount/public-key])
|
(let [pub-key (rf/sub [:multiaccount/public-key])
|
||||||
deleted-by-me? (= (or deleted-by from) pub-key)
|
deleted-by-me? (= (or deleted-by from) pub-key)
|
||||||
on-long-press-fn (compute-on-long-press-fn message context)]
|
on-long-press-fn (compute-on-long-press-fn message context)]
|
||||||
(if-not deleted-by-me?
|
(if (and deleted? (not deleted-by-me?))
|
||||||
[deleted-by-message message on-long-press-fn]
|
[deleted-by-message message on-long-press-fn]
|
||||||
[quo/system-message
|
[quo/system-message
|
||||||
{:type :deleted
|
{:type :deleted
|
||||||
|
|
Loading…
Reference in New Issue