                                   :photo-path       (identicon whisper-identity)
                                   :whisper-identity whisper-identity}]
                      (if (contacts/exists? whisper-identity)
-                       (dispatch [:add-pending-contact whisper-identity])
+                       (dispatch [:add-pending-contact-and-open-chat whisper-identity])
                        (dispatch [:add-new-contact-and-open-chat contact])))
                    (dispatch [:set :contacts/new-public-key-error (label :t/unknown-address)]))))))
 

            [status-im.protocol.core :as protocol]
            [status-im.utils.utils :refer [http-post]]
            [status-im.utils.phone-number :refer [format-phone-number]]
            [status-im.utils.random :as random] 
            [taoensso.timbre :as log]
            [cljs.reader :refer [read-string]]
            [status-im.utils.js-resources :as js-res]

      {:dispatch-n [[::add-new-contact contact']
                    [:watch-contact contact']
                    [:discoveries-send-portions chat-or-whisper-id]]})))

(register-handler-fx
  :add-pending-contact-and-open-chat
  (fn [_ [_ whisper-id]]
    {:dispatch-n [[:add-pending-contact whisper-id]
                  [:start-chat whisper-id {:navigation-replace? true}]]}))

(register-handler-db
  :set-contact-identity-from-qr
