MCPcopy Index your code
hub / github.com/mailvelope/mailvelope / setLogo

Method setLogo

src/controller/api.controller.js:115–122  ·  view source on GitHub ↗
({keyringId, dataURL, revision})

Source from the content-addressed store, hash-verified

113 }
114
115 async setLogo({keyringId, dataURL, revision}) {
116 const keyring = await keyringById(keyringId);
117 const attr = await keyring.getAttributes();
118 if (attr.logo_revision && attr.logo_revision > revision) {
119 throw new MvError('New logo revision < existing revision.', 'REVISION_INVALID');
120 }
121 await setKeyringAttr(keyringId, {logo_revision: revision, logo_data_url: dataURL});
122 }
123
124 async hasPrivateKey({keyringId, fingerprint, email}) {
125 const keyring = await keyringById(keyringId);

Callers

nothing calls this directly

Calls 2

setKeyringAttrFunction · 0.90
getAttributesMethod · 0.80

Tested by

no test coverage detected