remove unused deleteChat rpc method and effects

This commit is contained in:
yenda 2019-09-15 21:23:25 +02:00
parent 47bae76c73
commit 543d28fbc1
No known key found for this signature in database
GPG Key ID: 0095623C0069DCE6
2 changed files with 1 additions and 14 deletions

View File

@ -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]})

View File

@ -52,6 +52,7 @@
"shhext_saveChat" {}
"shhext_contacts" {}
"shhext_blockContact" {}
;;TODO not used anywhere?
"shhext_deleteChat" {}
"shhext_saveContact" {}
"status_joinPublicChat" {}