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

Method onArmored

src/content-scripts/decryptFrame.js:43–60  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41 }
42
43 async onArmored() {
44 let sender = await this.getEmailSender();
45 sender = sender.map(person => person.email);
46 sender = deDup(sender);
47 const armored = this.getPGPMessage();
48 if (this.currentProvider.integration) {
49 const integrationMsgData = this.currentProvider.integration.getMsgByControllerId(this.id);
50 if (integrationMsgData) {
51 const {msgId, att: encAttFileNames} = integrationMsgData;
52 this.port.emit('set-data', {userInfo: this.currentProvider.integration.getUserInfo(), msgId, encAttFileNames, armored, sender, gmailCtrlId: this.currentProvider.integration.id});
53 return;
54 }
55 }
56 this.port.emit('set-armored', {
57 data: armored,
58 options: {senderAddress: sender}
59 });
60 }
61
62 clickHandler(ev) {
63 super.clickHandler(undefined, ev);

Callers

nothing calls this directly

Calls 6

deDupFunction · 0.90
getEmailSenderMethod · 0.80
getPGPMessageMethod · 0.80
getMsgByControllerIdMethod · 0.80
getUserInfoMethod · 0.80
emitMethod · 0.45

Tested by

no test coverage detected