[#16703] The display name is not resolved in chats for user sender after relogin (#16704)

This commit is contained in:
flexsurfer 2023-07-18 10:04:42 +02:00 committed by GitHub
parent e99f6de434
commit 32f18c3d3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -39,10 +39,11 @@
(contact.db/public-key->new-contact identity))) (contact.db/public-key->new-contact identity)))
(defn contact-two-names-by-identity (defn contact-two-names-by-identity
[contact current-multiaccount identity] [contact profile identity]
(let [me? (= (:public-key current-multiaccount) identity)] (let [me? (= (:public-key profile) identity)]
(if me? (if me?
[(or (:preferred-name current-multiaccount) [(or (:preferred-name profile)
(:display-name profile)
(:primary-name contact) (:primary-name contact)
(gfycat/generate-gfy identity))] (gfycat/generate-gfy identity))]
[(:primary-name contact) (:secondary-name contact)]))) [(:primary-name contact) (:secondary-name contact)])))