fix contact request message is not shown in the 1-1 chat (#19904)
This commit is contained in:
parent
a9b4d86b00
commit
4eaf832b43
|
@ -235,6 +235,9 @@
|
||||||
constants/content-type-text
|
constants/content-type-text
|
||||||
[content.text/text-content message-data context]
|
[content.text/text-content message-data context]
|
||||||
|
|
||||||
|
constants/content-type-contact-request
|
||||||
|
[content.text/text-content message-data context]
|
||||||
|
|
||||||
constants/content-type-emoji
|
constants/content-type-emoji
|
||||||
[emoji-message/view
|
[emoji-message/view
|
||||||
{:content content
|
{:content content
|
||||||
|
|
|
@ -307,15 +307,14 @@
|
||||||
[chat.group/group-chat-footer chat-id invitation-admin]])
|
[chat.group/group-chat-footer chat-id invitation-admin]])
|
||||||
|
|
||||||
(defn render-fn
|
(defn render-fn
|
||||||
[{:keys [type value content-type] :as message-data} _ _
|
[{:keys [type value] :as message-data} _ _
|
||||||
{:keys [context keyboard-shown?]}]
|
{:keys [context keyboard-shown?]}]
|
||||||
(when (not= content-type constants/content-type-contact-request)
|
|
||||||
(cond
|
(cond
|
||||||
(= type :datemark)
|
(= type :datemark)
|
||||||
[quo/divider-date value]
|
[quo/divider-date value]
|
||||||
|
|
||||||
:else
|
:else
|
||||||
[message/message message-data context keyboard-shown?])))
|
[message/message message-data context keyboard-shown?]))
|
||||||
|
|
||||||
(defn on-content-size-change
|
(defn on-content-size-change
|
||||||
[{:keys [content-height distance-atom distance-from-list-top]}]
|
[{:keys [content-height distance-atom distance-from-list-top]}]
|
||||||
|
|
Loading…
Reference in New Issue