Merge pull request #613 from status-im/bug/#608

Non-DApp Default Contact cannot receive messages or friend requests (#608)
This commit is contained in:
Jarrad 2017-01-04 11:46:41 +07:00 committed by GitHub
commit 6ee32a96c1
2 changed files with 4 additions and 1 deletions

View File

@ -82,6 +82,8 @@
:keypair {:public updates-public-key
:private updates-private-key}}}})))
(register-handler :send-contact-request! (u/side-effect! send-contact-request))
(register-handler :update-contact!
(fn [db [_ {:keys [whisper-identity] :as contact}]]
(if (contacts/exists? whisper-identity)

View File

@ -6,7 +6,8 @@
[status-im.contacts.views.contact-inner :refer [contact-inner-view]]
[status-im.utils.platform :refer [platform-specific]]))
(defn- on-press [{:keys [whisper-identity]}]
(defn- on-press [{:keys [whisper-identity] :as contact}]
(dispatch [:send-contact-request! contact])
(dispatch [:start-chat whisper-identity {} :navigation-replace]))
(defn- more-on-press [contact]