Show gfycat in new chat search

fixes #11027

Signed-off-by: Gheorghe Pinzaru <feross95@gmail.com>
This commit is contained in:
Gheorghe Pinzaru 2020-08-05 17:48:59 +03:00
parent 72726e2b0b
commit 2371dcbc60
No known key found for this signature in database
GPG Key ID: C9A094959935A952
1 changed files with 5 additions and 1 deletions

View File

@ -6,6 +6,7 @@
[status-im.ui.components.colors :as colors]
[status-im.ui.components.icons.vector-icons :as vector-icons]
[quo.core :as quo]
[status-im.utils.gfycat.core :as gfycat]
[status-im.ui.components.list.views :as list]
[status-im.ui.components.react :as react]
[status-im.ui.components.topbar :as topbar]
@ -94,7 +95,10 @@
(cond (= state :error)
(get-validation-label error)
(= state :valid)
(str (when ens-name (str ens-name " • "))
(str (if ens-name
ens-name
(gfycat/generate-gfy public-key))
" • "
(utils/get-shortened-address public-key))
:else "")]]
[list/flat-list {:data contacts