Skip to content

Commit

Permalink
Show gfycat in new chat search
Browse files Browse the repository at this point in the history
fixes #11027

Signed-off-by: Gheorghe Pinzaru <feross95@gmail.com>
  • Loading branch information
Ferossgp committed Aug 6, 2020
1 parent 72726e2 commit 2371dcb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/status_im/ui/screens/add_new/new_chat/views.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2371dcb

Please sign in to comment.