prevent sending contact request to dapp

This commit is contained in:
Roman Volosovskyi 2017-04-17 10:16:17 +03:00
parent c984c07183
commit 2a0239ddae
1 changed files with 4 additions and 3 deletions

View File

@ -383,7 +383,8 @@
(register-handler :open-chat-with-contact
(u/side-effect!
(fn [_ [_ {:keys [whisper-identity] :as contact}]]
(dispatch [:send-contact-request! contact])
(fn [_ [_ {:keys [whisper-identity dapp?] :as contact}]]
(when-not dapp?
(dispatch [:send-contact-request! contact]))
(dispatch [:navigate-to-clean :chat-list])
(dispatch [:start-chat whisper-identity {}]))))
(dispatch [:start-chat whisper-identity {}]))))