Resolve username to ENS right after 1-1 chat opened after username search from 'Start new chat' by ENS

Signed-off-by: Brian Sztamfater <brian@status.im>
This commit is contained in:
Brian Sztamfater 2021-05-06 16:53:58 -03:00
parent 880321ccc4
commit 929925af39
No known key found for this signature in database
GPG Key ID: 59EB921E0706B48F
1 changed files with 3 additions and 1 deletions

View File

@ -191,7 +191,9 @@
:subtitle (if ens-name (gfycat/generate-gfy public-key) (utils/get-shortened-address public-key))
:icon [chat-icon/contact-icon-contacts-tab
(identicon/identicon public-key)]
:on-press #(re-frame/dispatch [:chat.ui/start-chat public-key])}
:on-press #(do
(debounce/dispatch-and-chill [:contact.ui/contact-code-submitted false] 3000)
(re-frame/dispatch [:search/home-filter-changed nil]))}
(when ens-name {:subtitle-secondary public-key}))]
[quo/text {:style {:margin-horizontal 16}
:size :base