Skip to content

Commit

Permalink
[#18453] fix: revert set display name endpoint changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mohsen-ghafouri committed Jan 31, 2024
1 parent 28e9224 commit a735839
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/status_im/contexts/profile/edit/name/events.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
[{:keys [db]} [name]]
{:db (assoc-in db [:profile/profile :display-name] name)
:fx [[:json-rpc/call
[{:method "wakuext_updateDisplayName"
:params [{:displayName name}]
[{:method "wakuext_setDisplayName"
:params [name]
:on-success [:profile/edit-profile-name-success]}]]]})

(rf/reg-event-fx :profile/edit-name edit-profile-name)
4 changes: 2 additions & 2 deletions src/status_im/contexts/profile/edit/name/events_test.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
cofx {:db {:profile/profile {:display-name "Old name"}}}
expected {:db {:profile/profile {:display-name new-name}}
:fx [[:json-rpc/call
[{:method "wakuext_updateDisplayName"
:params [{:displayName name}]
[{:method "wakuext_setDisplayName"
:params [name]
:on-success [:profile/edit-profile-name-success]}]]]}]
(is (match? expected
(sut/edit-profile-name cofx [new-name])))))
4 changes: 2 additions & 2 deletions status-go-version.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"owner": "status-im",
"repo": "status-go",
"version": "feat/update-display-name",
"commit-sha1": "5c4b8964b955c442ad2adca9cdbe73cb9544dded",
"src-sha256": "0khlv89qbskqj8ysp06snji16l42319g050pp8w7l6fspfaijxad"
"commit-sha1": "84aa9142ef9d7e7fd43dae2617401739aae96f5b",
"src-sha256": "15kc1cxpxmb5wgzpa7k8lc7pni72jmq5nmk0vba6ljyb7ajkjhid"
}

0 comments on commit a735839

Please sign in to comment.