[16469] Fix conditional of selection user's name in confirmation drawer (#16489)
This commit is contained in:
parent
f047665f75
commit
abe653c086
|
@ -33,10 +33,14 @@
|
|||
(let [{:keys [group-chat chat-id public-key color
|
||||
profile-picture name]} context
|
||||
id (or chat-id public-key)
|
||||
display-name (or
|
||||
(when-not group-chat
|
||||
contact-name-by-identity (when-not group-chat
|
||||
(rf/sub [:contacts/contact-name-by-identity id]))
|
||||
name)
|
||||
display-name (cond
|
||||
(= contact-name-by-identity
|
||||
"Unknown") name
|
||||
(= contact-name-by-identity
|
||||
nil) name
|
||||
:else contact-name-by-identity)
|
||||
contact (when-not group-chat
|
||||
(rf/sub [:contacts/contact-by-address
|
||||
id]))
|
||||
|
|
Loading…
Reference in New Issue