remove unused deleteChat rpc method and effects
This commit is contained in:
parent
47bae76c73
commit
543d28fbc1
|
@ -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]})
|
||||
|
|
|
@ -52,6 +52,7 @@
|
|||
"shhext_saveChat" {}
|
||||
"shhext_contacts" {}
|
||||
"shhext_blockContact" {}
|
||||
;;TODO not used anywhere?
|
||||
"shhext_deleteChat" {}
|
||||
"shhext_saveContact" {}
|
||||
"status_joinPublicChat" {}
|
||||
|
|
Loading…
Reference in New Issue