Skip to content
Snippets Groups Projects

Modify usage of Gravatar

Merged Alexey Lunin requested to merge 373-Modify_usage_of_Gravatar into master
1 unresolved thread
@@ -610,6 +610,19 @@ const connection = Penpal.connectToParent({
return responseToClient;
},
identityPullAvatarFromGravatar: async () => {
const authenticationPublicKey = localStorage.getItem("authenticatedIdentity");
if (!authenticationPublicKey || !window.loadedIdentities[authenticationPublicKey]) {
return encodeResponse("400", "", "Identity not authenticated");
}
const success = extendPinCodeTtl(authenticationPublicKey);
if(!success) {
return encodeResponse("400", "", "Identity not authenticated");
}
return await executeRestfulFunction("private", viamApi, viamApi.identityPullAvatarFromGravatar);
},
identityAddNewDevice() {
return new Penpal.Promise(result => {
const authenticationPublicKey = localStorage.getItem("authenticatedIdentity");
Loading