mirror of
https://github.com/status-im/status-mobile.git
synced 2025-02-05 21:34:03 +00:00
fix: identifier rings are displayed on avatars for users with a set ENS (#17346)
This commit is contained in:
parent
a99ae74da7
commit
7543dc9001
@ -39,7 +39,7 @@
|
||||
:background-color intials avatar background color
|
||||
:color intials avatar text color
|
||||
:size intials avatar radius
|
||||
:ring? render ident ring around avatar?}
|
||||
:ring? render ident ring around avatar? NOTE: this option may not work if override-ring? is not nil}
|
||||
|
||||
supported color formats:
|
||||
#RRGGBB
|
||||
|
@ -247,8 +247,9 @@
|
||||
(pos? (count (get multiaccount :images)))))
|
||||
|
||||
(defn- replace-multiaccount-image-uri
|
||||
[multiaccount port font-file avatar-opts]
|
||||
[multiaccount ens-names port font-file avatar-opts]
|
||||
(let [{:keys [key-uid ens-name? images]} multiaccount
|
||||
ens-name? (or ens-name? (seq ens-names))
|
||||
theme (theme/get-theme)
|
||||
avatar-opts (assoc avatar-opts :override-ring? (when ens-name? false))
|
||||
images-with-uri (mapv (fn [{key-uid :keyUid image-name :type :as image}]
|
||||
@ -273,10 +274,11 @@
|
||||
(re-frame/reg-sub
|
||||
:profile/multiaccount
|
||||
:<- [:profile/profile]
|
||||
:<- [:ens/names]
|
||||
:<- [:mediaserver/port]
|
||||
:<- [:initials-avatar-font-file]
|
||||
(fn [[multiaccount port font-file] [_ avatar-opts]]
|
||||
(replace-multiaccount-image-uri multiaccount port font-file avatar-opts)))
|
||||
(fn [[multiaccount ens-names port font-file] [_ avatar-opts]]
|
||||
(replace-multiaccount-image-uri multiaccount ens-names port font-file avatar-opts)))
|
||||
|
||||
(re-frame/reg-sub
|
||||
:profile/login-profile
|
||||
|
Loading…
x
Reference in New Issue
Block a user