added simple dapp in dev mode
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
This commit is contained in:
parent
4aaecf792b
commit
6d4c611db1
|
@ -191,6 +191,11 @@
|
|||
"dapp-url": {"en" : "https://cryptofighters.io"},
|
||||
"dapp?": true,
|
||||
"photo-path": "contacts://cryptofighters"
|
||||
},
|
||||
"simple-dapp": {
|
||||
"name" : {"en" : "Simple Dapp"},
|
||||
"description": "Request test assets and test basic web3 functionality.",
|
||||
"dapp-url": {"en" : "https://status-im.github.io/dapp/"},
|
||||
"dapp?": true
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -43,8 +43,11 @@
|
|||
|
||||
(reg-sub :all-dapp-with-url-contacts
|
||||
:<- [:all-added-contacts]
|
||||
(fn [contacts]
|
||||
(filter #(and (:dapp? %) (:dapp-url %)) contacts)))
|
||||
:<- [:get-current-account]
|
||||
(fn [[contacts {:keys [dev-mode?]}]]
|
||||
(filter #(and (:dapp? %) (:dapp-url %) (or dev-mode?
|
||||
(not= "simple-dapp" (:whisper-identity %))))
|
||||
contacts)))
|
||||
|
||||
(reg-sub :get-people-in-current-chat
|
||||
:<- [:get-current-chat-contacts]
|
||||
|
|
Loading…
Reference in New Issue