Add display name/ens to activity center

This commit is contained in:
Andrea Maria Piana 2023-02-17 18:42:20 +00:00
parent 172bf66436
commit 58013db24c
No known key found for this signature in database
GPG Key ID: AA6CCA6DE0E06424
1 changed files with 7 additions and 2 deletions

View File

@ -2,5 +2,10 @@
(defn contact-name
[contact]
(or (get-in contact [:names :nickname])
(get-in contact [:names :three-words-name])))
(->> [(get-in contact [:names :nickname])
(get-in contact [:names :ens-name])
(get-in contact [:names :display-name])
(get-in contact [:names :three-words-name])]
(filter seq)
first))