Skip to content

Commit

Permalink
remove status-im from utils
Browse files Browse the repository at this point in the history
  • Loading branch information
flexsurfer committed Dec 20, 2023
1 parent b5e965a commit d118395
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/status_im/subs/contact.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
{:thumbnail
{:fn (image-server/get-initials-avatar-uri-fn
{:port port
:ratio status-im.common.pixel-ratio/ratio
:ratio pixel-ratio/ratio
:public-key public-key
:override-ring? (when ens-name false)
:uppercase-ratio (:uppercase-ratio constants/initials-avatar-font-conf)
Expand Down
15 changes: 7 additions & 8 deletions src/status_im/subs/profile.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,13 @@
{:fn
(if image-name
(image-server/get-account-image-uri-fn {:port port
:ratio status-im.common.pixel-ratio/ratio
:ratio pixel-ratio/ratio
:image-name image-name
:key-uid target-key-uid
:theme (theme/get-theme)
:override-ring? override-ring?})
(image-server/get-initials-avatar-uri-fn {:port port
:ratio status-im.common.pixel-ratio/ratio
:ratio pixel-ratio/ratio
:key-uid target-key-uid
:theme (theme/get-theme)
:override-ring? override-ring?
Expand Down Expand Up @@ -280,20 +280,19 @@
images-with-uri (mapv (fn [{key-uid :keyUid image-name :type :as image}]
(let [uri-fn (image-server/get-account-image-uri-fn
(merge
{:port port
:ratio
status-im.common.pixel-ratio/ratio
{:port port
:ratio pixel-ratio/ratio
:image-name image-name
:key-uid key-uid
:theme theme}
:key-uid key-uid
:theme theme}
avatar-opts))]
(assoc image :fn uri-fn)))
images)
new-images (if (seq images-with-uri)
images-with-uri
[{:fn (image-server/get-initials-avatar-uri-fn
(merge {:port port
:ratio status-im.common.pixel-ratio/ratio
:ratio pixel-ratio/ratio
:uppercase-ratio
(:uppercase-ratio
constants/initials-avatar-font-conf)
Expand Down

0 comments on commit d118395

Please sign in to comment.