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 (register-handler :open-chat-with-contact
(u/side-effect! (u/side-effect!
(fn [_ [_ {:keys [whisper-identity] :as contact}]] (fn [_ [_ {:keys [whisper-identity dapp?] :as contact}]]
(dispatch [:send-contact-request! contact]) (when-not dapp?
(dispatch [:send-contact-request! contact]))
(dispatch [:navigate-to-clean :chat-list]) (dispatch [:navigate-to-clean :chat-list])
(dispatch [:start-chat whisper-identity {}])))) (dispatch [:start-chat whisper-identity {}]))))