Add preview and counters for CR system messages #16898 (#16969)

This commit is contained in:
flexsurfer 2023-08-12 06:39:26 +02:00 committed by GitHub
parent 713cf8bf79
commit bf8b31d22d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 8 deletions

View File

@ -88,7 +88,9 @@
:dont-show (i18n/label :t/Pinned-a-message)
(i18n/label :t/Pinned-a-message))
constants/content-type-contact-request
(constants/content-type-contact-request
constants/content-type-system-message-mutual-event-removed
constants/content-type-system-message-mutual-event-accepted)
(i18n/label :t/contact-request)
constants/content-type-sticker

View File

@ -254,9 +254,7 @@
(defn render-fn
[{: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 (#{constants/content-type-contact-request}
content-type)
(when (not= content-type constants/content-type-contact-request)
[rn/view
(add-inverted-y-android {:background-color (colors/theme-colors colors/white colors/neutral-95)})
(cond

View File

@ -66,7 +66,10 @@
:data {:avatar (community-avatar community)
:community-name (:name community)}})
(= content-type constants/content-type-contact-request)
(#{constants/content-type-contact-request
constants/content-type-system-message-mutual-event-removed
constants/content-type-system-message-mutual-event-accepted}
content-type)
{:content-type constants/content-type-contact-request}))
{:new-notifications? (pos? (:unviewed-messages-count chat))

View File

@ -3,7 +3,7 @@
"_comment": "Instead use: scripts/update-status-go.sh <rev>",
"owner": "status-im",
"repo": "status-go",
"version": "v0.163.6",
"commit-sha1": "52fb1cd60589691f3fae61c84720eacd2b02ae6e",
"src-sha256": "0si6dy45cjgrdaj9zgw2f6k1slhnl734g0xr6q31yabigp3qq9ng"
"version": "v0.163.7",
"commit-sha1": "1ca165c5863f1000b2604f4b6c47bcadb2c7db0e",
"src-sha256": "018x6qsknnamblvv4afy8ndr8ck2aiz2nna7ir8q53kl2d9lsk7j"
}