Skip to content
Snippets Groups Projects

add emailService to VCardAttributes

Merged Damyan Mitev requested to merge 32-implement-validation-of-vcard into master
@@ -1410,6 +1410,9 @@ const connection = Penpal.connectToParent({
return encodeResponse("200", "", "Document signed");
},
// passportUUID - String - passport to sign the vCard
// senderEmail - the email address of the sender
// attribs - additional attributes, to be added to the vCard. Recognized attribs are:
// - emailService: "GMail", "Outlook 365", ...
// text, html - String - the text and html part of the email, both optional
// parts - array of objects, representing the MIME structure in format:
// {
@@ -1421,7 +1424,7 @@ const connection = Penpal.connectToParent({
// body: String if it is a text part (Content-Type = "text/...") or Uint8Array otherwise; filled for leaf MIME nodes
// parts: array of instances of the same object; filled for container MIME nodes (Content-Type = "multipart/...")
// }
signVCard: async (passportUUID, senderEmail, text, html, parts = null) => {
signVCard: async (passportUUID, senderEmail, attribs, text, html, parts = null) => {
const authenticationPublicKey = localStorage.getItem(
"authenticatedIdentity"
);
@@ -1437,8 +1440,9 @@ const connection = Penpal.connectToParent({
const messageUUID = makeid();
const vCardAttribs = {
passportUUID: passportUUID,
messageUUID: messageUUID
...attribs,
passportUUID,
messageUUID
};
let vCardImageData;
Loading