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

Method createDraft

src/content-scripts/editorContainer.js:93–99  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

91 }
92
93 createDraft() {
94 return new Promise((resolve, reject) => {
95 this.checkInProgress();
96 this.createDraftPromise = {resolve, reject};
97 this.port.emit('editor-container-create-draft', {keyringId: this.keyringId});
98 });
99 }
100
101 checkInProgress() {
102 if (this.encryptPromise || this.createDraftPromise) {

Callers 1

editorCreateDraftFunction · 0.45

Calls 2

checkInProgressMethod · 0.95
emitMethod · 0.45

Tested by

no test coverage detected