temporary hide mutual update's messages (#16290)
This commit is contained in:
parent
68b9ea47a8
commit
5214f34b31
|
@ -14,6 +14,7 @@
|
||||||
(def ^:const content-type-gap 10)
|
(def ^:const content-type-gap 10)
|
||||||
(def ^:const content-type-contact-request 11) ;; TODO: temp, will be removed
|
(def ^:const content-type-contact-request 11) ;; TODO: temp, will be removed
|
||||||
(def ^:const content-type-system-pinned-message 14)
|
(def ^:const content-type-system-pinned-message 14)
|
||||||
|
(def ^:const content-type-system-mutual-state-update 15)
|
||||||
|
|
||||||
;; Not implemented in status-go, only used for testing/ui work
|
;; Not implemented in status-go, only used for testing/ui work
|
||||||
(def ^:const content-type-gif 100)
|
(def ^:const content-type-gif 100)
|
||||||
|
|
|
@ -236,17 +236,19 @@
|
||||||
(defn render-fn
|
(defn render-fn
|
||||||
[{:keys [type value deleted? deleted-for-me? content-type] :as message-data} _ _
|
[{:keys [type value deleted? deleted-for-me? content-type] :as message-data} _ _
|
||||||
{:keys [context keyboard-shown?]}]
|
{:keys [context keyboard-shown?]}]
|
||||||
[rn/view
|
;;TODO temporary hide mutual-state-updates https://github.com/status-im/status-mobile/issues/16254
|
||||||
(add-inverted-y-android {:background-color (colors/theme-colors colors/white colors/neutral-95)})
|
(when (not= content-type constants/content-type-system-mutual-state-update)
|
||||||
(if (= type :datemark)
|
[rn/view
|
||||||
[quo/divider-date value]
|
(add-inverted-y-android {:background-color (colors/theme-colors colors/white colors/neutral-95)})
|
||||||
(if (= content-type constants/content-type-gap)
|
(if (= type :datemark)
|
||||||
[not-implemented/not-implemented
|
[quo/divider-date value]
|
||||||
[message.gap/gap message-data]]
|
(if (= content-type constants/content-type-gap)
|
||||||
[rn/view {:padding-horizontal 8}
|
[not-implemented/not-implemented
|
||||||
(if (or deleted? deleted-for-me?)
|
[message.gap/gap message-data]]
|
||||||
[content.deleted/deleted-message message-data context]
|
[rn/view {:padding-horizontal 8}
|
||||||
[message/message-with-reactions message-data context keyboard-shown?])]))])
|
(if (or deleted? deleted-for-me?)
|
||||||
|
[content.deleted/deleted-message message-data context]
|
||||||
|
[message/message-with-reactions message-data context keyboard-shown?])]))]))
|
||||||
|
|
||||||
(defn scroll-handler
|
(defn scroll-handler
|
||||||
[event scroll-y]
|
[event scroll-y]
|
||||||
|
|
Loading…
Reference in New Issue