Issue-13813: Use new endpoints for browser (#13827)

* Bump browswer endpoints

f43f43cc...924820c1

Rebase

Rebase

* Bump endpoints

* Bump status-go

f43f43cc...f43f43cc

Rebase

* typo
This commit is contained in:
Ibrahem Khalil 2022-08-24 23:31:20 +02:00 committed by GitHub
parent 8e3258769e
commit 2b3d59e8c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -50,7 +50,7 @@
{:events [:browser.ui/remove-browser-pressed]} {:events [:browser.ui/remove-browser-pressed]}
[{:keys [db]} browser-id] [{:keys [db]} browser-id]
{:db (update-in db [:browser/browsers] dissoc browser-id) {:db (update-in db [:browser/browsers] dissoc browser-id)
::json-rpc/call [{:method "browsers_deleteBrowser" ::json-rpc/call [{:method "wakuext_deleteBrowser"
:params [browser-id] :params [browser-id]
:on-success #()}]}) :on-success #()}]})
@ -59,7 +59,7 @@
[{:keys [db]}] [{:keys [db]}]
{:db (dissoc db :browser/browsers) {:db (dissoc db :browser/browsers)
::json-rpc/call (for [browser-id (keys (get db :browser/browsers))] ::json-rpc/call (for [browser-id (keys (get db :browser/browsers))]
{:method "browsers_deleteBrowser" {:method "wakuext_deleteBrowser"
:params [browser-id] :params [browser-id]
:on-success #()})}) :on-success #()})})
@ -96,7 +96,7 @@
{:db (update-in db {:db (update-in db
[:browser/browsers browser-id] [:browser/browsers browser-id]
merge updated-browser) merge updated-browser)
::json-rpc/call [{:method "browsers_addBrowser" ::json-rpc/call [{:method "wakuext_addBrowser"
:params [(select-keys updated-browser [:browser-id :timestamp :name :dapp? :history :history-index])] :params [(select-keys updated-browser [:browser-id :timestamp :name :dapp? :history :history-index])]
:on-success #()}]})) :on-success #()}]}))

View File

@ -328,7 +328,7 @@
(fx/defn initialize-browser [_] (fx/defn initialize-browser [_]
{::json-rpc/call {::json-rpc/call
[{:method "browsers_getBrowsers" [{:method "wakuext_getBrowsers"
:on-success #(re-frame/dispatch [::initialize-browsers %])} :on-success #(re-frame/dispatch [::initialize-browsers %])}
{:method "browsers_getBookmarks" {:method "browsers_getBookmarks"
:on-success #(re-frame/dispatch [::initialize-bookmarks %])} :on-success #(re-frame/dispatch [::initialize-bookmarks %])}