fix stickers persistence

Signed-off-by: yenda <eric@status.im>
This commit is contained in:
yenda 2020-01-10 14:49:09 +01:00
parent bdcb34ffab
commit f36efbc24b
No known key found for this signature in database
GPG Key ID: 0095623C0069DCE6
2 changed files with 10 additions and 3 deletions

View File

@ -25,6 +25,12 @@
{} {}
custom-bootnodes)) custom-bootnodes))
(defn rpc->stickers-packs [stickers-packs]
(reduce-kv (fn [acc pack-id stickers-pack]
(assoc acc (js/parseInt (name pack-id)) stickers-pack))
{}
stickers-packs))
(defn rpc->settings [settings] (defn rpc->settings [settings]
(-> settings (-> settings
(update :dapps-address eip55/address->checksum) (update :dapps-address eip55/address->checksum)
@ -32,4 +38,5 @@
(update :networks/networks rpc->networks) (update :networks/networks rpc->networks)
(update :wallet/visible-tokens rpc->visible-tokens) (update :wallet/visible-tokens rpc->visible-tokens)
(update :pinned-mailservers rpc->pinned-mailservers) (update :pinned-mailservers rpc->pinned-mailservers)
(update :stickers/packs-installed rpc->stickers-packs)
(update :currency keyword))) (update :currency keyword)))

View File

@ -2,7 +2,7 @@
"_comment": "DO NOT EDIT THIS FILE BY HAND. USE 'scripts/update-status-go.sh <tag>' instead", "_comment": "DO NOT EDIT THIS FILE BY HAND. USE 'scripts/update-status-go.sh <tag>' instead",
"owner": "status-im", "owner": "status-im",
"repo": "status-go", "repo": "status-go",
"version": "v0.38.5", "version": "v0.39.2",
"commit-sha1": "cf2d16d186f1aff84613b4442f25fbba34665328", "commit-sha1": "5546ce8c3001b76a5d741a20177497dce3e30653",
"src-sha256": "0crja1cpql4np8v1n478q0zjiynvagvwxm4diia2zry4w8bk290h" "src-sha256": "1h72gld4hhrhz6g9c2anzzbawxzapswg47d1vdn9w7q7zwm8pisb"
} }