Disable sending message

Seems like the current version of status-go does not contain some of the
code that was in the previous, so disabling this for now until we verify
it works.

Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
This commit is contained in:
Andrea Maria Piana 2019-01-21 15:46:57 +01:00
parent dd9933cfec
commit 66c2d0d9cb
No known key found for this signature in database
GPG Key ID: AA6CCA6DE0E06424
1 changed files with 8 additions and 15 deletions

View File

@ -50,21 +50,14 @@
[{:keys [db] :as cofx} {:keys [payload chat-id success-event]}] [{:keys [db] :as cofx} {:keys [payload chat-id success-event]}]
;; we assume that the chat contains the contact public-key ;; we assume that the chat contains the contact public-key
(let [{:keys [web3]} db (let [{:keys [web3]} db
{:keys [sym-key-id topic]} (get-in db [:transport/chats chat-id]) {:keys [sym-key-id topic]} (get-in db [:transport/chats chat-id])]
pfs? (get-in db [:account/account :settings :pfs?])]
(if pfs?
(send-public-message
cofx
chat-id
success-event
payload)
{:shh/post [{:web3 web3 {:shh/post [{:web3 web3
:success-event success-event :success-event success-event
:message (merge {:sig (accounts.db/current-public-key cofx) :message (merge {:sig (accounts.db/current-public-key cofx)
:symKeyID sym-key-id :symKeyID sym-key-id
:payload payload :payload payload
:topic topic} :topic topic}
whisper-opts)}]}))) whisper-opts)}]}))
(fx/defn send-direct-message (fx/defn send-direct-message
"Sends the payload using to dst" "Sends the payload using to dst"