Profile picture sync

Signed-off-by: Vitaliy Vlasov <siphiuel@protonmail.com>
This commit is contained in:
Vitaliy Vlasov 2022-04-04 15:18:02 +03:00 committed by Vitaliy Vlasov
parent 0c3097abb2
commit fbfab9fd3b
No known key found for this signature in database
GPG Key ID: A7D57C347F2B2964
2 changed files with 16 additions and 4 deletions

View File

@ -50,6 +50,7 @@
^js bookmarks (.-bookmarks response-js) ^js bookmarks (.-bookmarks response-js)
^js settings (.-settings response-js) ^js settings (.-settings response-js)
^js cleared-histories (.-clearedHistories response-js) ^js cleared-histories (.-clearedHistories response-js)
^js identity-images (.-identityImages response-js)
sync-handler (when-not process-async process-response)] sync-handler (when-not process-async process-response)]
(cond (cond
@ -159,7 +160,18 @@
visibility-status-updates-clj))) visibility-status-updates-clj)))
(seq settings) (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) (some? current-visibility-status)
(let [current-visibility-status-clj (types/js->clj current-visibility-status)] (let [current-visibility-status-clj (types/js->clj current-visibility-status)]

View File

@ -3,7 +3,7 @@
"_comment": "Instead use: scripts/update-status-go.sh <rev>", "_comment": "Instead use: scripts/update-status-go.sh <rev>",
"owner": "status-im", "owner": "status-im",
"repo": "status-go", "repo": "status-go",
"version": "v0.98.3", "version": "v0.98.4",
"commit-sha1": "9de4eb3c8af4b50e74ca70760053432365dbc873", "commit-sha1": "16197dc8075a6a67323d285af7593348f4289fd5",
"src-sha256": "1rpk5imvhgvj5b1fda2b05qnk6dg22g8rjv2j5lhbik9s555ph4y" "src-sha256": "0znmgd2qr50gyksifi7x38smz0zy3ndv54x54f2g34z9l3kilyyn"
} }