Profile picture sync
Signed-off-by: Vitaliy Vlasov <siphiuel@protonmail.com>
This commit is contained in:
parent
0c3097abb2
commit
fbfab9fd3b
|
@ -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)]
|
||||||
|
|
|
@ -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"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue