Skip to content

Commit f2ad786

Browse files
committed
Show trust mark in contacts
1 parent 2eee4fe commit f2ad786

File tree

1 file changed

+4
-1
lines changed
  • src/status_im/common/contact_list_item

1 file changed

+4
-1
lines changed

src/status_im/common/contact_list_item/view.cljs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
(ns status-im.common.contact-list-item.view
22
(:require
33
[quo.core :as quo]
4+
[status-im.constants :as constants]
45
[utils.address :as address]
56
[utils.re-frame :as rf]))
67

78
(defn contact-list-item
89
[{:keys [on-press on-long-press accessory allow-multiple-presses? disabled?]}
910
{:keys [primary-name secondary-name public-key compressed-key ens-verified added?
10-
container-style]}
11+
container-style trust-status]}
1112
theme]
1213
(let [photo-path (rf/sub [:chats/photo-path public-key])
1314
online? (rf/sub [:visibility-status-updates/online? public-key])
15+
untrustworthy? (= constants/contact-trust-status-untrustworthy trust-status)
1416
customization-color (rf/sub [:profile/customization-color])]
1517
[quo/user
1618
{:customization-color customization-color
@@ -23,6 +25,7 @@
2325
:online? online?
2426
:verified? ens-verified
2527
:contact? added?
28+
:untrustworthy? untrustworthy?
2629
:on-press on-press
2730
:on-long-press on-long-press
2831
:accessory accessory

0 commit comments

Comments
 (0)