added simple dapp in dev mode

Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
This commit is contained in:
Andrey Shovkoplyas 2018-04-30 11:20:13 +03:00
parent 4aaecf792b
commit 6d4c611db1
No known key found for this signature in database
GPG Key ID: EAAB7C8622D860A4
2 changed files with 11 additions and 3 deletions

View File

@ -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
}
}

View File

@ -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]