diff --git a/src/status_im2/constants.cljs b/src/status_im2/constants.cljs index 3f22443361..23c5543000 100644 --- a/src/status_im2/constants.cljs +++ b/src/status_im2/constants.cljs @@ -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) diff --git a/src/status_im2/contexts/chat/messages/list/view.cljs b/src/status_im2/contexts/chat/messages/list/view.cljs index 4fe8923511..c16193e63c 100644 --- a/src/status_im2/contexts/chat/messages/list/view.cljs +++ b/src/status_im2/contexts/chat/messages/list/view.cljs @@ -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]