Skip to content

Commit 3f4cbc0

Browse files
committed
feat: contact CustomizationColor
status-im/status-go@894eb57...df4d77c Signed-off-by: yqrashawn <[email protected]>
1 parent dd7795a commit 3f4cbc0

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

src/legacy/status_im/multiaccounts/update/core.cljs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
[{:keys [db]}]
1111
(let [{:keys [name preferred-name display-name address]} (:profile/profile db)]
1212
{:json-rpc/call [{:method "wakuext_sendContactUpdates"
13-
:params [(or preferred-name display-name name) ""]
13+
:params [(or preferred-name display-name name) "" ""]
1414
:on-success #(log/debug "sent contact update")}]}))
1515

1616
(rf/defn update-multiaccount-account-name

src/status_im/contexts/chat/contacts/events.cljs

+4-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@
2727
:has-added-us? (oops/oget js-contact "hasAddedUs")
2828
:mutual? (oops/oget js-contact "mutual")
2929
:emoji-hash (oops/oget js-contact "emojiHash")
30-
:bio (oops/oget js-contact "bio")})
30+
:bio (oops/oget js-contact "bio")
31+
:customization-color (-> js-contact
32+
(oops/oget "customizationColor")
33+
keyword)})
3134

3235
(defn prepare-events-for-contact
3336
[db chats-js]

src/status_im/contexts/profile/settings/events.cljs

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
(let [{:keys [name preferred-name display-name]} (:profile/profile db)]
3030
[:json-rpc/call
3131
[{:method "wakuext_sendContactUpdates"
32-
:params [(or preferred-name display-name name) ""]
32+
:params [(or preferred-name display-name name) "" ""]
3333
:on-success #(log/debug "sent contact update")}]]))]}))
3434

3535
(rf/reg-event-fx :profile.settings/change-webview-debug

status-go-version.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"_comment": "Instead use: scripts/update-status-go.sh <rev>",
44
"owner": "status-im",
55
"repo": "status-go",
6-
"version": "v0.178.0",
7-
"commit-sha1": "eb13459fa0ef9404f71b239a50f8e8c03ef8d0e6",
8-
"src-sha256": "0zgpr2pzcjgivn9fmm8z4krhm9fslvbfvmwv9k788x1lj6q10fd0"
6+
"version": "feat/contact-customization-color",
7+
"commit-sha1": "df4d77c1af66f64c745e0508676e021a38c1381d",
8+
"src-sha256": "1mnyfhnvcm56s5ls40fn4y5kraxrfpanx6x2ladxg4hsfng2yrjp"
99
}

0 commit comments

Comments
 (0)