Non-DApp Default Contact cannot receive messages or friend requests (#608)
This commit is contained in:
parent
8af289c543
commit
3825f19f06
|
@ -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)
|
||||
|
|
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue