Skip to content

Commit d5aa4e5

Browse files
committed
feat: contact CustomizationColor
status-im/status-go@8c0e24d...2d9e036 Signed-off-by: yqrashawn <[email protected]>
1 parent 6bda542 commit d5aa4e5

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
@@ -25,7 +25,10 @@
2525
:has-added-us? (oops/oget js-contact "hasAddedUs")
2626
:mutual? (oops/oget js-contact "mutual")
2727
:emoji-hash (oops/oget js-contact "emojiHash")
28-
:bio (oops/oget js-contact "bio")})
28+
:bio (oops/oget js-contact "bio")
29+
:customization-color (-> js-contact
30+
(oops/oget "customizationColor")
31+
keyword)})
2932

3033
(defn prepare-events-for-contact
3134
[db chats-js]

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

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

1818
(rf/defn profile-update

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.176.9",
7-
"commit-sha1": "a3ad05db58b8af20bf6b7ab852f8603212abac4e",
8-
"src-sha256": "10c05kgihczbams3i8fkfm1mh5m61bnsjh255c22m4awc073rg12"
6+
"version": "feat/contact-customization-color",
7+
"commit-sha1": "2d9e036f02bc36da91622e72e094e4234e683534",
8+
"src-sha256": "0y7nnn5byp6wj6pli07q0dgc98ympd2y1lhj1nqzr34mdc3zvj6x"
99
}

0 commit comments

Comments
 (0)