diff --git a/src/status_im/data_store/chats.cljs b/src/status_im/data_store/chats.cljs index e22325ae9c..f34651b1ea 100644 --- a/src/status_im/data_store/chats.cljs +++ b/src/status_im/data_store/chats.cljs @@ -156,17 +156,3 @@ :params [] :on-success #(on-success (map <-rpc %)) :on-failure #(log/error "failed to fetch chats" 0 -1 %)}]}) - -(defn delete-chat-rpc [chat-id chat-type] - (json-rpc/call {:method "shhext_deleteChat" - :params [chat-id chat-type] - :on-success #(log/debug "deleteed chat" chat-id chat-type) - :on-failure #(log/error "failed to delete chat" chat-id chat-type %)})) - -(re-frame/reg-fx - ::delete-chat - (fn [[chat-id chat-type]] - (delete-chat-rpc chat-id chat-type))) - -(fx/defn delete-chat [cofx chat-id chat-type] - {::delete-chat [chat-id chat-type]}) diff --git a/src/status_im/ethereum/json_rpc.cljs b/src/status_im/ethereum/json_rpc.cljs index 42e334c8d2..d5f6dec89d 100644 --- a/src/status_im/ethereum/json_rpc.cljs +++ b/src/status_im/ethereum/json_rpc.cljs @@ -52,6 +52,7 @@ "shhext_saveChat" {} "shhext_contacts" {} "shhext_blockContact" {} + ;;TODO not used anywhere? "shhext_deleteChat" {} "shhext_saveContact" {} "status_joinPublicChat" {}