fix contact request message is not shown in the 1-1 chat (#19904)

This commit is contained in:
Parvesh Monu 2024-05-06 16:19:21 +05:30 committed by GitHub
parent a9b4d86b00
commit 4eaf832b43
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 7 deletions

View File

@ -235,6 +235,9 @@
constants/content-type-text
[content.text/text-content message-data context]
constants/content-type-contact-request
[content.text/text-content message-data context]
constants/content-type-emoji
[emoji-message/view
{:content content

View File

@ -307,15 +307,14 @@
[chat.group/group-chat-footer chat-id invitation-admin]])
(defn render-fn
[{:keys [type value content-type] :as message-data} _ _
[{:keys [type value] :as message-data} _ _
{:keys [context keyboard-shown?]}]
(when (not= content-type constants/content-type-contact-request)
(cond
(= type :datemark)
[quo/divider-date value]
:else
[message/message message-data context keyboard-shown?])))
[message/message message-data context keyboard-shown?]))
(defn on-content-size-change
[{:keys [content-height distance-atom distance-from-list-top]}]