Compare commits

...
3 changed files with 20 additions and 14 deletions
+1
View File
@@ -14,6 +14,7 @@
(def ^:const content-type-gap 10)
(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-mutual-state-update 15)
;; Not implemented in status-go, only used for testing/ui work
(def ^:const content-type-gif 100)
@@ -236,17 +236,19 @@
(defn render-fn
[{:keys [type value deleted? deleted-for-me? content-type] :as message-data} _ _
{:keys [context keyboard-shown?]}]
[rn/view
(add-inverted-y-android {:background-color (colors/theme-colors colors/white colors/neutral-95)})
(if (= type :datemark)
[quo/divider-date value]
(if (= content-type constants/content-type-gap)
[not-implemented/not-implemented
[message.gap/gap message-data]]
[rn/view {:padding-horizontal 8}
(if (or deleted? deleted-for-me?)
[content.deleted/deleted-message message-data context]
[message/message-with-reactions message-data context keyboard-shown?])]))])
;;TODO temporary hide mutual-state-updates https://github.com/status-im/status-mobile/issues/16254
(when (not= content-type constants/content-type-system-mutual-state-update)
[rn/view
(add-inverted-y-android {:background-color (colors/theme-colors colors/white colors/neutral-95)})
(if (= type :datemark)
[quo/divider-date value]
(if (= content-type constants/content-type-gap)
[not-implemented/not-implemented
[message.gap/gap message-data]]
[rn/view {:padding-horizontal 8}
(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
[event scroll-y]
+6 -3
View File
@@ -53,7 +53,8 @@
{:name :chat
:options {:insets {:top? true}
:popGesture false}
:popGesture false
:layout {:orientation ["portrait"]}}
:component chat/chat}
{:name :start-a-new-chat
@@ -85,10 +86,12 @@
:component how-to-pair/instructions}
{:name :discover-communities
:component communities.discover/discover}
:component communities.discover/discover
:options {:layout {:orientation ["portrait"]}}}
{:name :community-overview
:component communities.overview/overview}
:component communities.overview/overview
:options {:layout {:orientation ["portrait"]}}}
{:name :settings-syncing
:options (merge options/dark-screen {:insets {:top? true}})