mirror of
https://github.com/status-im/status-mobile.git
synced 2025-01-29 09:56:01 +00:00
[#10744] Error at attempt to set custom-domain ENS as main
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
This commit is contained in:
parent
2c9ed72ace
commit
e743cbacd0
@ -463,15 +463,6 @@
|
|||||||
(fn [{:keys [preferred-name]}]
|
(fn [{:keys [preferred-name]}]
|
||||||
preferred-name))
|
preferred-name))
|
||||||
|
|
||||||
(re-frame/reg-sub
|
|
||||||
:multiaccount/my-name
|
|
||||||
:<- [:multiaccount/public-key]
|
|
||||||
:<- [:multiaccount/preferred-name]
|
|
||||||
(fn [[identity preferred-name]]
|
|
||||||
(if preferred-name
|
|
||||||
(stateofus/username (str "@" preferred-name))
|
|
||||||
(gfycat/generate-gfy identity))))
|
|
||||||
|
|
||||||
(re-frame/reg-sub
|
(re-frame/reg-sub
|
||||||
:multiaccount/default-account
|
:multiaccount/default-account
|
||||||
:<- [:multiaccount/accounts]
|
:<- [:multiaccount/accounts]
|
||||||
@ -1607,7 +1598,7 @@
|
|||||||
[(re-frame/subscribe [:contacts/contact-by-identity identity])])
|
[(re-frame/subscribe [:contacts/contact-by-identity identity])])
|
||||||
(fn [[db-contact] _]
|
(fn [[db-contact] _]
|
||||||
(if (and (:ens-verified db-contact) (seq (:name db-contact)))
|
(if (and (:ens-verified db-contact) (seq (:name db-contact)))
|
||||||
(stateofus/username (str "@" (:name db-contact)))
|
(str "@" (:name db-contact))
|
||||||
(:alias db-contact))))
|
(:alias db-contact))))
|
||||||
|
|
||||||
(re-frame/reg-sub
|
(re-frame/reg-sub
|
||||||
@ -1620,7 +1611,8 @@
|
|||||||
(if me?
|
(if me?
|
||||||
(or (:preferred-name current-multiaccount)
|
(or (:preferred-name current-multiaccount)
|
||||||
(gfycat/generate-gfy identity))
|
(gfycat/generate-gfy identity))
|
||||||
(or contact-name
|
(or (stateofus/username contact-name)
|
||||||
|
contact-name
|
||||||
(gfycat/generate-gfy identity))))))
|
(gfycat/generate-gfy identity))))))
|
||||||
|
|
||||||
(re-frame/reg-sub
|
(re-frame/reg-sub
|
||||||
|
@ -23,7 +23,8 @@
|
|||||||
[status-im.ui.screens.chat.styles.message.message :as message.style]
|
[status-im.ui.screens.chat.styles.message.message :as message.style]
|
||||||
[status-im.ui.screens.chat.photos :as photos]
|
[status-im.ui.screens.chat.photos :as photos]
|
||||||
[status-im.ui.screens.profile.components.views :as profile.components]
|
[status-im.ui.screens.profile.components.views :as profile.components]
|
||||||
[status-im.utils.debounce :as debounce])
|
[status-im.utils.debounce :as debounce]
|
||||||
|
[clojure.string :as string])
|
||||||
(:require-macros [status-im.utils.views :as views]))
|
(:require-macros [status-im.utils.views :as views]))
|
||||||
|
|
||||||
(defn- button
|
(defn- button
|
||||||
@ -627,8 +628,9 @@
|
|||||||
[radio/radio (= name preferred-name)]]]))]]]])
|
[radio/radio (= name preferred-name)]]]))]]]])
|
||||||
|
|
||||||
(views/defview my-name []
|
(views/defview my-name []
|
||||||
(views/letsubs [contact-name [:multiaccount/my-name]]
|
(views/letsubs [contact-name [:multiaccount/preferred-name]]
|
||||||
(chat.utils/format-author contact-name message.style/message-author-name-container)))
|
(when-not (string/blank? contact-name)
|
||||||
|
(chat.utils/format-author (str "@" contact-name) message.style/message-author-name-container))))
|
||||||
|
|
||||||
(defn- registered [names {:keys [preferred-name] :as account} _]
|
(defn- registered [names {:keys [preferred-name] :as account} _]
|
||||||
[react/view {:style {:flex 1}}
|
[react/view {:style {:flex 1}}
|
||||||
|
@ -113,7 +113,7 @@
|
|||||||
{:key-fn :chat-id
|
{:key-fn :chat-id
|
||||||
:keyboard-should-persist-taps :always
|
:keyboard-should-persist-taps :always
|
||||||
:data chats
|
:data chats
|
||||||
:render-fn inner-item/home-list-item
|
:render-fn (fn [home-item] [inner-item/home-list-item home-item])
|
||||||
:header (when (or (seq chats) @search-active?)
|
:header (when (or (seq chats) @search-active?)
|
||||||
[search-input-wrapper search-filter])
|
[search-input-wrapper search-filter])
|
||||||
:footer (if (and (not hide-home-tooltip?) (not @search-active?))
|
:footer (if (and (not hide-home-tooltip?) (not @search-active?))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user