From 002f96ac48be4372024ab791bdb9f43ca8ee003f Mon Sep 17 00:00:00 2001 From: Mohsen Date: Mon, 29 Jan 2024 20:23:24 +0330 Subject: [PATCH] [#18453] fix: display name changes effect profile image --- src/status_im/contexts/profile/edit/header/view.cljs | 12 +++++++----- src/status_im/contexts/profile/edit/name/events.cljs | 4 ++-- .../contexts/profile/edit/name/events_test.cljs | 4 ++-- status-go-version.json | 6 +++--- 4 files changed, 14 insertions(+), 12 deletions(-) diff --git a/src/status_im/contexts/profile/edit/header/view.cljs b/src/status_im/contexts/profile/edit/header/view.cljs index de3ca2c178ea..f647e08931df 100644 --- a/src/status_im/contexts/profile/edit/header/view.cljs +++ b/src/status_im/contexts/profile/edit/header/view.cljs @@ -10,6 +10,7 @@ (defn view [] (let [profile (rf/sub [:profile/profile-with-image]) + customization-color (rf/sub [:profile/customization-color]) full-name (profile.utils/displayed-name profile) profile-picture (profile.utils/photo profile) has-picture? (rf/sub [:profile/has-picture]) @@ -23,11 +24,12 @@ [quo/text-combinations {:title (i18n/label :t/edit-profile)}] [rn/view style/avatar-wrapper [quo/user-avatar - {:full-name full-name - :profile-picture profile-picture - :status-indicator? false - :ring? true - :size :big}] + {:full-name full-name + :profile-picture profile-picture + :customization-color customization-color + :status-indicator? false + :ring? true + :size :big}] [quo/button {:on-press (fn [] (rf/dispatch diff --git a/src/status_im/contexts/profile/edit/name/events.cljs b/src/status_im/contexts/profile/edit/name/events.cljs index f1e4258a1680..c91cab2dcde3 100644 --- a/src/status_im/contexts/profile/edit/name/events.cljs +++ b/src/status_im/contexts/profile/edit/name/events.cljs @@ -15,8 +15,8 @@ [{:keys [db]} [name]] {:db (assoc-in db [:profile/profile :display-name] name) :fx [[:json-rpc/call - [{:method "wakuext_setDisplayName" - :params [name] + [{:method "wakuext_updateDisplayName" + :params [{:displayName name}] :on-success [:profile/edit-profile-name-success]}]]]}) (rf/reg-event-fx :profile/edit-name edit-profile-name) diff --git a/src/status_im/contexts/profile/edit/name/events_test.cljs b/src/status_im/contexts/profile/edit/name/events_test.cljs index 121cdd94cfcd..4759e7577ea9 100644 --- a/src/status_im/contexts/profile/edit/name/events_test.cljs +++ b/src/status_im/contexts/profile/edit/name/events_test.cljs @@ -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_setDisplayName" - :params [name] + [{:method "wakuext_updateDisplayName" + :params [{:displayName name}] :on-success [:profile/edit-profile-name-success]}]]]}] (is (match? expected (sut/edit-profile-name cofx [new-name]))))) diff --git a/status-go-version.json b/status-go-version.json index 3a73ff331ff4..7347da1814d3 100644 --- a/status-go-version.json +++ b/status-go-version.json @@ -3,7 +3,7 @@ "_comment": "Instead use: scripts/update-status-go.sh ", "owner": "status-im", "repo": "status-go", - "version": "v0.172.8", - "commit-sha1": "436d22985661322ffda4eb44c1a160e6804f3823", - "src-sha256": "1y3l469k2085qaml7dmaky1rlanl4phq2p6yyk97074yw839jzj1" + "version": "feat/update-display-name", + "commit-sha1": "5c4b8964b955c442ad2adca9cdbe73cb9544dded", + "src-sha256": "0khlv89qbskqj8ysp06snji16l42319g050pp8w7l6fspfaijxad" }