From c0e4653129b87fd6c7d34040cc38c311ff50f597 Mon Sep 17 00:00:00 2001 From: Parvesh Monu Date: Fri, 14 Jul 2023 19:29:19 +0530 Subject: [PATCH] hide mutual update's system messages (#16674) --- src/status_im2/constants.cljs | 4 +++- src/status_im2/contexts/chat/messages/list/view.cljs | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/status_im2/constants.cljs b/src/status_im2/constants.cljs index 04951ad412..68aea1538c 100644 --- a/src/status_im2/constants.cljs +++ b/src/status_im2/constants.cljs @@ -14,7 +14,9 @@ (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) +(def ^:const content-type-system-message-mutual-event-sent 15) +(def ^:const content-type-system-message-mutual-event-accepted 16) +(def ^:const content-type-system-message-mutual-event-removed 17) ;; 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 2a63c83c70..b0e2049f2a 100644 --- a/src/status_im2/contexts/chat/messages/list/view.cljs +++ b/src/status_im2/contexts/chat/messages/list/view.cljs @@ -253,7 +253,10 @@ [{:keys [type value content-type] :as message-data} _ _ {:keys [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) + (when-not (#{constants/content-type-system-message-mutual-event-sent + constants/content-type-system-message-mutual-event-accepted + constants/content-type-system-message-mutual-event-removed} + content-type) [rn/view (add-inverted-y-android {:background-color (colors/theme-colors colors/white colors/neutral-95)}) (cond