From fbfab9fd3bdbcfa6cdd9a24a6bce526da8252fd3 Mon Sep 17 00:00:00 2001 From: Vitaliy Vlasov Date: Mon, 4 Apr 2022 15:18:02 +0300 Subject: [PATCH] Profile picture sync Signed-off-by: Vitaliy Vlasov --- src/status_im/transport/message/core.cljs | 14 +++++++++++++- status-go-version.json | 6 +++--- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/src/status_im/transport/message/core.cljs b/src/status_im/transport/message/core.cljs index b355b19505..d16e04beb3 100644 --- a/src/status_im/transport/message/core.cljs +++ b/src/status_im/transport/message/core.cljs @@ -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 @@ -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)] diff --git a/status-go-version.json b/status-go-version.json index 185ae5e38f..eb78309b50 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.98.3", - "commit-sha1": "9de4eb3c8af4b50e74ca70760053432365dbc873", - "src-sha256": "1rpk5imvhgvj5b1fda2b05qnk6dg22g8rjv2j5lhbik9s555ph4y" + "version": "v0.98.4", + "commit-sha1": "16197dc8075a6a67323d285af7593348f4289fd5", + "src-sha256": "0znmgd2qr50gyksifi7x38smz0zy3ndv54x54f2g34z9l3kilyyn" }