Skip to content

Commit 5c9e660

Browse files
flexsurfersiddarthkay
authored andcommitted
[#16703] The display name is not resolved in chats for user sender after relogin (#16704)
1 parent dfbabd0 commit 5c9e660

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/status_im/multiaccounts/core.cljs

+4-3
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,11 @@
3939
(contact.db/public-key->new-contact identity)))
4040

4141
(defn contact-two-names-by-identity
42-
[contact current-multiaccount identity]
43-
(let [me? (= (:public-key current-multiaccount) identity)]
42+
[contact profile identity]
43+
(let [me? (= (:public-key profile) identity)]
4444
(if me?
45-
[(or (:preferred-name current-multiaccount)
45+
[(or (:preferred-name profile)
46+
(:display-name profile)
4647
(:primary-name contact)
4748
(gfycat/generate-gfy identity))]
4849
[(:primary-name contact) (:secondary-name contact)])))

0 commit comments

Comments
 (0)