[Fixes: #12680] Republish image on changing profile settings

Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
This commit is contained in:
Andrea Maria Piana 2021-10-08 12:48:17 +01:00
parent 8d0bdf7c7f
commit f50dcf53de
No known key found for this signature in database
GPG Key ID: AA6CCA6DE0E06424
5 changed files with 16 additions and 6 deletions

View File

@ -135,6 +135,7 @@
"multiaccounts_getIdentityImage" {}
"multiaccounts_storeIdentityImage" {}
"multiaccounts_deleteIdentityImage" {}
"wakuext_changeIdentityImageShowTo" {}
"wakuext_createCommunity" {}
"wakuext_editCommunity" {}
"wakuext_createCommunityChat" {}

View File

@ -173,7 +173,11 @@
(fx/defn switch-profile-picture-show-to
{:events [:multiaccounts.ui/profile-picture-show-to-switched]}
[cofx id]
(multiaccounts.update/multiaccount-update cofx :profile-pictures-show-to id {}))
(fx/merge cofx
{::json-rpc/call [{:method "wakuext_changeIdentityImageShowTo"
:params [id]
:on-success #(log/debug "picture settings changed successfully")}]}
(multiaccounts.update/optimistic :profile-pictures-show-to id)))
(fx/defn switch-appearance-profile
{:events [:multiaccounts.ui/appearance-profile-switched]}

View File

@ -162,7 +162,11 @@
[react/view {:margin-top 8}
[ppst-radio-item constants/profile-pictures-show-to-everyone profile-pictures-show-to]
[ppst-radio-item constants/profile-pictures-show-to-contacts-only profile-pictures-show-to]
[ppst-radio-item constants/profile-pictures-show-to-none profile-pictures-show-to]]))
[ppst-radio-item constants/profile-pictures-show-to-none profile-pictures-show-to]
[react/view {:style {:margin-horizontal 16}}
[quo/text {:color :secondary}
(i18n/label :t/privacy-show-to-warning)]]]))
(defn ppvf-radio-item [id value]
[quo/list-item
@ -176,4 +180,4 @@
[react/view {:margin-top 8}
[ppvf-radio-item constants/profile-pictures-visibility-everyone profile-pictures-visibility]
[ppvf-radio-item constants/profile-pictures-visibility-contacts-only profile-pictures-visibility]
[ppvf-radio-item constants/profile-pictures-visibility-none profile-pictures-visibility]]))
[ppvf-radio-item constants/profile-pictures-visibility-none profile-pictures-visibility]]))

View File

@ -3,7 +3,7 @@
"_comment": "Instead use: scripts/update-status-go.sh <rev>",
"owner": "status-im",
"repo": "status-go",
"version": "v0.89.9",
"commit-sha1": "4e33e4679593c93a8a183f8326a279343e29307d",
"src-sha256": "1286g2mn3vm7n2bmihr2jlkacvjrdyhppxd5mrkpdlj1asxwangj"
"version": "v0.89.10",
"commit-sha1": "75aebd94aba4bdc45dcda96188aa9c8533facdca",
"src-sha256": "1p2vkj00j9m64cd1fhaa12657qxrz4ramshh1g4qm3c1yjkk3091"
}

View File

@ -1025,6 +1025,7 @@
"privacy-photos": "Profile Photo Privacy",
"privacy-and-security": "Privacy and security",
"privacy-policy": "Privacy policy",
"privacy-show-to-warning": "People who have already seen your profile picture will continue to do so",
"processing": "Just a moment",
"product-information": "Product Information",
"profile": "Profile",