Skip to content

Commit

Permalink
Profile picture sync
Browse files Browse the repository at this point in the history
Signed-off-by: Vitaliy Vlasov <[email protected]>
  • Loading branch information
Vitaliy Vlasov authored and Vitaliy Vlasov committed Apr 22, 2022
1 parent 0c3097a commit fbfab9f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
14 changes: 13 additions & 1 deletion src/status_im/transport/message/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
^js bookmarks (.-bookmarks response-js)
^js settings (.-settings response-js)
^js cleared-histories (.-clearedHistories response-js)
^js identity-images (.-identityImages response-js)
sync-handler (when-not process-async process-response)]
(cond

Expand Down Expand Up @@ -159,7 +160,18 @@
visibility-status-updates-clj)))

(seq settings)
(update.core/set-many-js cofx settings)
(do
(js-delete response-js "settings")
(fx/merge cofx
(process-next response-js sync-handler)
(update.core/set-many-js settings)))

(seq identity-images)
(let [images-clj (map types/js->clj identity-images)]
(js-delete response-js "identityImages")
(fx/merge cofx
(process-next response-js sync-handler)
(update.core/optimistic :images images-clj)))

(some? current-visibility-status)
(let [current-visibility-status-clj (types/js->clj current-visibility-status)]
Expand Down
6 changes: 3 additions & 3 deletions status-go-version.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"_comment": "Instead use: scripts/update-status-go.sh <rev>",
"owner": "status-im",
"repo": "status-go",
"version": "v0.98.3",
"commit-sha1": "9de4eb3c8af4b50e74ca70760053432365dbc873",
"src-sha256": "1rpk5imvhgvj5b1fda2b05qnk6dg22g8rjv2j5lhbik9s555ph4y"
"version": "v0.98.4",
"commit-sha1": "16197dc8075a6a67323d285af7593348f4289fd5",
"src-sha256": "0znmgd2qr50gyksifi7x38smz0zy3ndv54x54f2g34z9l3kilyyn"
}

0 comments on commit fbfab9f

Please sign in to comment.