MCPcopy Create free account
hub / github.com/mailvelope/mailvelope / handleKeyServerSync

Method handleKeyServerSync

src/app/keyring/User.js:211–223  ·  view source on GitHub ↗
({sync})

Source from the content-addressed store, hash-verified

209 }
210
211 async handleKeyServerSync({sync}) {
212 this.setState({processing: true});
213 try {
214 await port.send('sync-keyserver', {emails: [this.state.user.email], fingerprint: this.state.keyDetails.fingerprint, keyringId: this.context.keyringId, sync});
215 } catch (e) {
216 // e.g. keyserver not available
217 console.log(e);
218 }
219 this.setState({
220 syncAction: sync ? 'upload' : 'remove',
221 processing: false
222 });
223 }
224
225 getKeyServerSyncAlert() {
226 let data;

Callers 1

handleDeleteMethod · 0.95

Calls 2

setStateMethod · 0.45
sendMethod · 0.45

Tested by

no test coverage detected